diff options
Diffstat (limited to 'server/initializers/installer.ts')
-rw-r--r-- | server/initializers/installer.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/installer.ts b/server/initializers/installer.ts index 077472341..c8f6b3bc2 100644 --- a/server/initializers/installer.ts +++ b/server/initializers/installer.ts | |||
@@ -5,7 +5,7 @@ import { database as db } from './database' | |||
5 | import { CONFIG, LAST_MIGRATION_VERSION, CACHE } from './constants' | 5 | import { CONFIG, LAST_MIGRATION_VERSION, CACHE } from './constants' |
6 | import { clientsExist, usersExist } from './checker' | 6 | import { clientsExist, usersExist } from './checker' |
7 | import { logger, createCertsIfNotExist, mkdirpPromise, rimrafPromise } from '../helpers' | 7 | import { logger, createCertsIfNotExist, mkdirpPromise, rimrafPromise } from '../helpers' |
8 | import { createUserAuthorAndChannel } from '../lib' | 8 | import { createUserAccountAndChannel } from '../lib' |
9 | import { UserRole } from '../../shared' | 9 | import { UserRole } from '../../shared' |
10 | 10 | ||
11 | async function installApplication () { | 11 | async function installApplication () { |
@@ -117,7 +117,7 @@ async function createOAuthAdminIfNotExist () { | |||
117 | } | 117 | } |
118 | const user = db.User.build(userData) | 118 | const user = db.User.build(userData) |
119 | 119 | ||
120 | await createUserAuthorAndChannel(user, validatePassword) | 120 | await createUserAccountAndChannel(user, validatePassword) |
121 | logger.info('Username: ' + username) | 121 | logger.info('Username: ' + username) |
122 | logger.info('User password: ' + password) | 122 | logger.info('User password: ' + password) |
123 | 123 | ||