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();

View File

@@ -373,7 +373,7 @@ class User extends Base {
return apps;
}
static async createAdminUser({ email, password, fullName }) {
static async createAdmin({ email, password, fullName }) {
const adminRole = await Role.findAdmin();
const adminUser = await this.query().insert({