From 91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Dec 2017 17:46:23 +0100 Subject: Add migration --- scripts/reset-password.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/reset-password.ts') diff --git a/scripts/reset-password.ts b/scripts/reset-password.ts index a6863f807..6516edc28 100755 --- a/scripts/reset-password.ts +++ b/scripts/reset-password.ts @@ -1,5 +1,5 @@ import * as program from 'commander' -import { initDatabase } from '../server/initializers' +import { initDatabaseModels } from '../server/initializers' import { UserModel } from '../server/models/account/user' program @@ -11,7 +11,7 @@ if (program['user'] === undefined) { process.exit(-1) } -initDatabase(true) +initDatabaseModels(true) .then(() => { return UserModel.loadByUsername(program['user']) }) -- cgit v1.2.3