This commit is contained in:
2026-03-10 11:58:24 +03:30
parent 4ead1cdaf6
commit ef2f4bf796
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ export class AdminService {
throw new NotFoundException('Admin not found');
}
const { roleId, ...rest } = dto;
const { ...rest } = dto;
// Update scalar fields (firstName, lastName, phone)
if (rest.firstName !== undefined) {