Przeglądaj źródła

fix(server): Admin user not created (#996)

Alex 2 lat temu
rodzic
commit
a2f3b2199a

+ 0 - 1
server/apps/immich/src/api-v1/user/user-repository.ts

@@ -59,7 +59,6 @@ export class UserRepository implements IUserRepository {
       user.salt = await bcrypt.genSalt();
       user.password = await this.hashPassword(user.password, user.salt);
     }
-    user.isAdmin = false;
 
     return this.userRepository.save(user);
   }