added pako and te

This commit is contained in:
Boki 2025-07-05 10:24:32 -04:00
parent f6a47f7a8c
commit 505565a09e
9 changed files with 62 additions and 3 deletions

View file

@ -0,0 +1,29 @@
import {
BaseHandler,
Handler,
Operation,
ScheduledOperation,
} from '@stock-bot/handlers';
@Handler('te')
export class TeHandler extends BaseHandler {
constructor(services: any) {
super(services);
}
@Operation('example-operation')
async exampleOperation(): Promise<unknown> {
this.logger.info('TE handler example operation executed');
return { success: true };
}
@ScheduledOperation('te-scheduled-job', '0 0 * * *', {
priority: 5,
description: 'Daily TE handler scheduled job',
immediately: false,
})
async scheduledJob(): Promise<unknown> {
this.logger.info('TE handler scheduled job executed');
return this.exampleOperation();
}
}