Skip to content

Commit 977db56

Browse files
committed
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.
1 parent 4e31995 commit 977db56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/models/game.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const createGame = async (id) => {
3838
await db('game').insert(
3939
{
4040
id,
41+
budget: 6000,
4142
},
4243
['id'],
4344
);

0 commit comments

Comments
 (0)