@@ -75,12 +75,7 @@ export class RabbitmqConsumerService implements OnModuleInit, OnModuleDestroy {
// Make sure partial resources get cleaned up.
await this.safeClose();
- // Choose ONE behavior:
- // 1) keep app running but consumer disabled:
- return;
-
- // 2) OR crash the app so you notice immediately:
- // throw err;
+ throw err;
}
@@ -31,10 +31,6 @@ export class UserLoginService {
throw new Error(`Unsupported loginAt type: ${typeof loginAt}`);
- /**
- * Record login history in box-stats DB.
- * NOTE: User model is no longer stored in box-stats.
- */
async recordLogin(event: UserLoginEventPayload): Promise<void> {
const createAt = this.toEpochSecondsBigInt((event as any).loginAt);