Linear: https://linear.app/comm/issue/ENG-1350/investigate-why-new-messages-are-not-displayed-when-keyserver
Introduce 5s delay before running database setup script and migrations in dev mode.
This prevents executing migrations and db setup script while project files are compiled after running yarn dev and nodemon restarts a few times.
Details
Details
I dropped database, and run yarn dev with and without fix, confirming that DB setup was fully completed using logs. Also checked threads table in DB to confirm the initial threads are created.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- jacek/db-creation-fix
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
keyserver/src/database/migrations.js | ||
---|---|---|
15 | This variable declaration should be grouped with the try-catch that sets it below |
keyserver/src/database/migrations.js | ||
---|---|---|
15 | I think it can't be inside try-catch, because it's used in line 30 - out of the block. Or do you mean just moving it to line 19? |
keyserver/src/database/migrations.js | ||
---|---|---|
15 | Yes that's what I mean |