aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/reset-password.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-13 17:46:23 +0100
committerChocobozzz <me@florianbigard.com>2017-12-13 17:46:23 +0100
commit91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d (patch)
tree1f227acea3e9684928dedbc070cc5fa6b3af42ee /scripts/reset-password.ts
parent65b3ed25fc33c63ab2c56372c1a010541f8fddc2 (diff)
downloadPeerTube-91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d.tar.gz
PeerTube-91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d.tar.zst
PeerTube-91fea9fc48a4ce53dd69e0e20f5804ad95a6c27d.zip
Add migration
Diffstat (limited to 'scripts/reset-password.ts')
-rwxr-xr-xscripts/reset-password.ts4
1 files changed, 2 insertions, 2 deletions
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 @@
1import * as program from 'commander' 1import * as program from 'commander'
2import { initDatabase } from '../server/initializers' 2import { initDatabaseModels } from '../server/initializers'
3import { UserModel } from '../server/models/account/user' 3import { UserModel } from '../server/models/account/user'
4 4
5program 5program
@@ -11,7 +11,7 @@ if (program['user'] === undefined) {
11 process.exit(-1) 11 process.exit(-1)
12} 12}
13 13
14initDatabase(true) 14initDatabaseModels(true)
15 .then(() => { 15 .then(() => {
16 return UserModel.loadByUsername(program['user']) 16 return UserModel.loadByUsername(program['user'])
17 }) 17 })