postiz-app/apps/workers/src/main.ts
2024-09-02 11:44:59 +07:00

16 lines
No EOL
463 B
TypeScript

import {NestFactory} from '@nestjs/core';
import {AppModule} from './app/app.module';
import {MicroserviceOptions} from '@nestjs/microservices';
import { BullMqServer } from '@gitroom/nestjs-libraries/bull-mq-transport-new/strategy';
async function bootstrap() {
// some comment again
const app = await NestFactory.createMicroservice<MicroserviceOptions>(AppModule, {
strategy: new BullMqServer()
});
await app.listen();
}
bootstrap();