瀏覽代碼

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

Alex 2 年之前
父節點
當前提交
a2f3b2199a
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      server/apps/immich/src/api-v1/user/user-repository.ts

+ 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);
   }