feat(resume-dialog): implement create sample resume sub-action in create resume dialog

This commit is contained in:
Amruth Pillai
2023-11-06 12:11:07 +01:00
parent 9b833076db
commit 685dc3aa6e
6 changed files with 539 additions and 14 deletions

View File

@ -17,7 +17,6 @@ import { StorageService } from "../storage/storage.service";
import { UtilsService } from "../utils/utils.service";
const MM_TO_PX = 3.78;
const PREVIEW_TIMEOUT = 5000; // 5 seconds
const PRINTER_TIMEOUT = 10000; // 10 seconds
@Injectable()
@ -81,7 +80,7 @@ export class PrinterService {
return this.utils.getCachedOrSet(
`user:${resume.userId}:storage:previews:${resume.id}`,
async () => {
return withTimeout(this.generatePreview(resume), PREVIEW_TIMEOUT);
return withTimeout(this.generatePreview(resume), PRINTER_TIMEOUT);
},
);
}