refactor admin crud popups
All checks were successful
deploy / build-and-deploy (push) Successful in 23s

This commit is contained in:
2025-05-21 17:22:20 +02:00
parent 8b18623232
commit e47268111a
46 changed files with 889 additions and 1041 deletions

View File

@ -12,13 +12,13 @@ export const blockedUser = mysqlTable('blocked_user', {
export type AddBlockedUserReq = {
uuid: string;
comment: string | null;
comment?: string | null;
};
export type EditBlockedUserReq = {
id: number;
uuid: string;
comment: string | null;
comment?: string | null;
};
export type GetBlockedUserByUuidReq = {

View File

@ -68,10 +68,7 @@ export async function getFeedbacks(db: Database, values: GetFeedbacksReq) {
content: feedback.content,
urlHash: feedback.urlHash,
lastChanged: feedback.lastChanged,
user: {
id: user.id,
username: user.username
}
username: user.username
})
.from(feedback)
.leftJoin(user, eq(feedback.userId, user.id));