mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Rename closeDatabase to closeDatabaseConnection
This commit is contained in:
@@ -7,7 +7,7 @@ const isString = require('lodash/isString');
|
||||
const { deferredToPromise } = require('../deferred_to_promise');
|
||||
|
||||
|
||||
const closeDatabase = ({ Backbone } = {}) =>
|
||||
const closeDatabaseConnection = ({ Backbone } = {}) =>
|
||||
deferredToPromise(Backbone.sync('closeall'));
|
||||
|
||||
exports.runMigrations = async ({ Backbone, database } = {}) => {
|
||||
@@ -28,5 +28,5 @@ exports.runMigrations = async ({ Backbone, database } = {}) => {
|
||||
|
||||
await deferredToPromise(migrationCollection.fetch({ limit: 1 }));
|
||||
console.log('Close database connection');
|
||||
await closeDatabase({ Backbone });
|
||||
await closeDatabaseConnection({ Backbone });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user