From 977db56ba01e3bcc407b36bf244e219014de4178 Mon Sep 17 00:00:00 2001 From: Jesper Date: Thu, 27 Apr 2023 09:53:06 -0400 Subject: [PATCH] Define initial budget in JS Add an initial budget of 6000 to where you actually insert games to the DB to use that instead of the DB default. --- src/models/game.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/game.js b/src/models/game.js index 491cd8d..4edd090 100644 --- a/src/models/game.js +++ b/src/models/game.js @@ -38,6 +38,7 @@ const createGame = async (id) => { await db('game').insert( { id, + budget: 6000, }, ['id'], );