mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-14 06:47:00 +10:00
fix(printer): increase timeout to 15s
This commit is contained in:
@@ -14,7 +14,7 @@ import { Config } from "../config/schema";
|
||||
import { StorageService } from "../storage/storage.service";
|
||||
import { UtilsService } from "../utils/utils.service";
|
||||
|
||||
const PRINTER_TIMEOUT = 10000; // 10 seconds
|
||||
const PRINTER_TIMEOUT = 15000; // 15 seconds
|
||||
|
||||
@Injectable()
|
||||
export class PrinterService {
|
||||
@@ -76,9 +76,7 @@ export class PrinterService {
|
||||
async printPreview(resume: ResumeDto) {
|
||||
return this.utils.getCachedOrSet(
|
||||
`user:${resume.userId}:storage:previews:${resume.id}`,
|
||||
async () => {
|
||||
return withTimeout(this.generatePreview(resume), PRINTER_TIMEOUT);
|
||||
},
|
||||
async () => withTimeout(this.generatePreview(resume), PRINTER_TIMEOUT),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user