postiz/apps/workers/src/main.ts

16 lines
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();