Merge pull request #324 from SISheogorath/fix/unintended-migrations

Limit DB schema changes to migrations
This commit is contained in:
Sheogorath 2020-04-17 14:35:52 +02:00 committed by GitHub
commit 301ab04839
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,7 +254,7 @@ function startListen () {
} }
// sync db then start listen // sync db then start listen
models.sequelize.sync().then(function () { models.sequelize.authenticate().then(function () {
// check if realtime is ready // check if realtime is ready
if (realtime.isReady()) { if (realtime.isReady()) {
models.Revision.checkAllNotesRevision(function (err, notes) { models.Revision.checkAllNotesRevision(function (err, notes) {