Edit login suoerAdmin

This commit is contained in:
2026-09-19 22:42:51 +03:30
parent b016b4754f
commit 605e1d3340
19 changed files with 717 additions and 43 deletions
@@ -11,7 +11,8 @@ export type PlatformJwtPayload = {
export type PlatformActor = {
platformAdminId: string;
email: string;
mobile: string | null;
email: string | null;
fullName: string;
};
@@ -39,6 +40,7 @@ export class PlatformJwtStrategy extends PassportStrategy(
where: { id: payload.sub },
select: {
id: true,
mobile: true,
email: true,
fullName: true,
isActive: true,
@@ -49,6 +51,7 @@ export class PlatformJwtStrategy extends PassportStrategy(
}
return {
platformAdminId: admin.id,
mobile: admin.mobile,
email: admin.email,
fullName: admin.fullName,
};