diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-11 16:22:50 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-11 16:22:50 +0100 |
commit | dea32aacde362a5fbd62a88cd32487768b788468 (patch) | |
tree | 3e11525470bb5a2ba0bfba99087f107494f49edf /server/initializers/migrator.js | |
parent | bf4ff8fe0be63422c05d42e12f25b454bb95d1a5 (diff) | |
download | PeerTube-dea32aacde362a5fbd62a88cd32487768b788468.tar.gz PeerTube-dea32aacde362a5fbd62a88cd32487768b788468.tar.zst PeerTube-dea32aacde362a5fbd62a88cd32487768b788468.zip |
Server: always check commit result
Diffstat (limited to 'server/initializers/migrator.js')
-rw-r--r-- | server/initializers/migrator.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/initializers/migrator.js b/server/initializers/migrator.js index eaecb4936..e5288b615 100644 --- a/server/initializers/migrator.js +++ b/server/initializers/migrator.js | |||
@@ -91,7 +91,7 @@ function executeMigration (actualVersion, entity, callback) { | |||
91 | return callback(err) | 91 | return callback(err) |
92 | } | 92 | } |
93 | 93 | ||
94 | t.commit() | 94 | t.commit().asCallback(callback) |
95 | }) | 95 | }) |
96 | }) | 96 | }) |
97 | }) | 97 | }) |