fix(printer): fix issue with printer service, locating the right URL of the server

This commit is contained in:
Amruth Pillai
2022-03-09 18:55:17 +01:00
parent 4447b58b8f
commit 6255849822
15 changed files with 62 additions and 27 deletions

View File

@ -10,6 +10,7 @@ const bootstrap = async () => {
const app = await NestFactory.create<NestExpressApplication>(AppModule);
// Middleware
app.enableCors({ credentials: true });
app.enableShutdownHooks();
app.use(cookieParser());

View File

@ -7,7 +7,7 @@ import { join } from 'path';
import { PDFDocument } from 'pdf-lib';
import { Browser, chromium } from 'playwright-chromium';
export const DELETION_TIME = 10 * 1000; // 10 seconds
export const DELETION_TIME = 10 * 1000 * 1000; // 10 seconds
@Injectable()
export class PrinterService implements OnModuleInit, OnModuleDestroy {