Skip to content

Commit b7893a4

Browse files
committed
[fix] removed forced sync of db, now models persist in dev env when container restart
1 parent a2d43e5 commit b7893a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { sequelize } = require('./models');
77
const { logger } = require('./tools');
88

99
// This is used until migrations are up and running for dev and prod
10-
if (process.env.NODE_ENV !== 'test') sequelize.sync({ force: true });
10+
if (process.env.NODE_ENV !== 'test') sequelize.sync();
1111

1212
const app = express();
1313
app.use(cors());

0 commit comments

Comments
 (0)