You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-06-15 00:05:28 +02:00
Project cleanup
This commit is contained in:
@ -87,6 +87,8 @@ export class SQLConnection {
|
||||
|
||||
public static async init(): Promise<void> {
|
||||
const connection = await this.getConnection();
|
||||
|
||||
// Add dummy Admin to the db
|
||||
const userRepository = connection.getRepository(UserEntity);
|
||||
const admins = await userRepository.find({role: UserRoles.Admin});
|
||||
if (admins.length === 0) {
|
||||
|
Reference in New Issue
Block a user