Skip to content

Commit d8856e8

Browse files
gavrielrhbilldybas
andauthored
Merge in dependency updates and fix to committee model (#101)
* Update Some Dependencies (#81) * Update nodemon * Update nodemailer & mailgun transport * Update sqlite * Update sequelize-cli * Add Make Keys Directory to README * Update nyc * Update bluebird, jsonwebtoken, mocha * Update mime, supertest, chai, cross-env, moment, morgan * Make committees 1->* officers rather than 1->1 (#96) Co-authored-by: Bill Dybas <[email protected]>
1 parent c68b574 commit d8856e8

File tree

4 files changed

+7922
-6030
lines changed

4 files changed

+7922
-6030
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ Only need to do this if you are working on scoreboard-related endpoints.
8787

8888
### Running the app
8989
1. `npm install`
90-
2. `npm run keygen`
91-
3. `npm run bootstrap -- --admin:firstName [YOUR NAME] --admin:lastName [YOUR LAST NAME] --admin:dce [YOUR DCE] --keygen --seed` - Creates and migrates the database. If you specify the admin args, a membership will be created for that
90+
2. `mkdir keys`
91+
3. `npm run keygen`
92+
4. `npm run bootstrap -- --admin:firstName [YOUR NAME] --admin:lastName [YOUR LAST NAME] --admin:dce [YOUR DCE] --keygen --seed` - Creates and migrates the database. If you specify the admin args, a membership will be created for that
9293
user with all permissions. If you specify keygen, all keys will be regenerated.
9394
If you specify seed it will seed the database.
94-
4. `npm start`
95+
5. `npm start`
9596

9697
### Additional Notes
9798
1. `PORT="2222" npm start` - Run the server on a different port.

models/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Specialty from './specialty';
99
import Tag from './tag';
1010
import User from './user';
1111

12-
Committee.hasOne(Officer);
12+
Committee.hasMany(Officer);
1313
Committee.hasMany(Event);
1414
Committee.hasMany(Membership);
1515

0 commit comments

Comments
 (0)