Cài đặt thành công tính năng người dùng đầu tiên phải đăng ký tài khoản để quản lí

This commit is contained in:
2026-06-13 17:45:49 +07:00
parent 6913bbae48
commit ee5a5b6800
10 changed files with 21 additions and 12 deletions
+1
View File
@@ -35,6 +35,7 @@ let AuthController = class AuthController {
}
async getStatus() {
const userCount = await this.prisma.user.count();
console.log(`[Status Check] Users found: ${userCount}`);
return { isInitialSetup: userCount === 0 };
}
async signup(body) {