Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit c783884

Browse files
committed
clean up several things
1 parent bcb433e commit c783884

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

seed.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,9 @@ dotenv.load();
44
process.env.MONGO_DATABASE = 'mongodb://localhost:27017/connect';
55
process.env.OUTPUT_LOG = './log.txt';
66

7-
// create a password
87
const crypto = require('crypto');
98
const app = require('express')();
10-
11-
// stub out the schema
129
require('./app/helpers/database')(app);
13-
14-
// create an admin user
1510
const User = require('./app/models/user');
1611
const Game = require('./app/models/game');
1712
const Group = require('./app/models/group');
@@ -28,11 +23,11 @@ function makeRandomString(length){
2823

2924
async function makeDummyData(){
3025
let admin = await makeAdmin();
31-
// let game = await makeGame();
26+
let game = await makeGame();
3227
let groups = await makeGroups();
3328
return Promise.all([
3429
admin,
35-
// game,
30+
game,
3631
groups
3732
]);
3833
}
@@ -64,11 +59,11 @@ async function makeGame(){
6459
console.log('Creating example game with releases...');
6560
//set your values as desired
6661
let gameParams = {
67-
title: 'Empty Game',
68-
slug: 'empty-game',
69-
repository: 'https://projects.pbs.org/bitbucket/projects/PKK/repos/empty-game/',
70-
location: 'https://springroll-tc.pbskids.org/empty-game',
71-
description: 'A placeholder game for testing.'
62+
title: '',
63+
slug: '',
64+
repository: '',
65+
location: '',
66+
description: ''
7267
};
7368
gameParams.created = gameParams.updated = Date.now();
7469
let game = new Game(gameParams);

0 commit comments

Comments
 (0)