From ce36a92482f910f8be91cfc2139b6af51848746f Mon Sep 17 00:00:00 2001 From: wangziqi Date: Sun, 5 Jul 2026 23:05:25 +0800 Subject: [PATCH] fix: revert untracked ExpenseType refs, fix findByUser falsy cursor check --- apps/server/src/app.module.ts | 4 ---- apps/server/src/notifications/notifications.service.ts | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/server/src/app.module.ts b/apps/server/src/app.module.ts index 9d0043a..09aa57d 100644 --- a/apps/server/src/app.module.ts +++ b/apps/server/src/app.module.ts @@ -29,7 +29,6 @@ import { DingAttendanceRaw, SyncLog, SyncState, - ExpenseType, Notification, } from './entities'; import { AuthModule } from './auth/auth.module'; @@ -52,7 +51,6 @@ import { SchedulesModule } from './schedules/schedules.module'; import { ClassroomRentalsModule } from './classroom-rentals/classroom-rentals.module'; import { SyncModule } from './sync/sync.module'; import { NotificationsModule } from './notifications/notifications.module'; -import { ExpenseTypesModule } from './expense-types/expense-types.module'; @Module({ imports: [ @@ -94,7 +92,6 @@ import { ExpenseTypesModule } from './expense-types/expense-types.module'; DingAttendanceRaw, SyncLog, SyncState, - ExpenseType, Notification, ]; if (dbType === 'mysql') { @@ -135,7 +132,6 @@ import { ExpenseTypesModule } from './expense-types/expense-types.module'; SchedulesModule, ClassroomRentalsModule, SyncModule, - ExpenseTypesModule, NotificationsModule, ], providers: [ diff --git a/apps/server/src/notifications/notifications.service.ts b/apps/server/src/notifications/notifications.service.ts index 4191459..3bb5d00 100644 --- a/apps/server/src/notifications/notifications.service.ts +++ b/apps/server/src/notifications/notifications.service.ts @@ -46,7 +46,7 @@ export class NotificationsService { .orderBy('n.createdAt', 'DESC') .take(limit); - if (after) { + if (after !== undefined) { qb.andWhere('n.id < :after', { after }); }