Fix error handle

fix pagination issue
change logic for change passsword and profile update
This commit is contained in:
2026-02-10 13:25:50 +07:00
parent 1d3e79c546
commit 5ffdd7454a
26 changed files with 339 additions and 213 deletions

10
src/types/db.d.ts vendored
View File

@@ -12,7 +12,7 @@ declare global {
};
}>;
type OrganizationWithMembers = Prisma.OrganizationGetPayload<{
type HouseWithMembers = Prisma.OrganizationGetPayload<{
include: {
members: {
select: {
@@ -30,8 +30,14 @@ declare global {
};
}>;
type HouseWithMembersCount = HouseWithMembers & {
_count: {
members: number;
};
};
type ReturnError = Error & {
message: string;
code: string;
message: string;
};
}