refactor(User): rename createAdminUser with createAdmin

This commit is contained in:
Ali BARIN
2024-05-13 14:09:09 +00:00
parent c80791267f
commit 5a83fc33ec
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import Config from '../../../../../models/config.js';
export default async (request, response) => {
const { email, password, fullName } = request.body;
await User.createAdminUser({ email, password, fullName });
await User.createAdmin({ email, password, fullName });
await Config.markInstallationCompleted();