mirror of
https://github.com/MrSedan/neuro-reply-website.git
synced 2026-01-15 04:59:42 +03:00
Update Admin entity and AdminService to use user_id instead of id
This commit is contained in:
@@ -21,7 +21,7 @@ export class AdminService {
|
||||
try {
|
||||
this.logger.debug(`[admin.checkIsAdmin]`);
|
||||
const admins = await this.adminRepository.findOne({
|
||||
where: { id: id },
|
||||
where: { user_id: id },
|
||||
});
|
||||
if (!admins) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user