mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-23 21:21:32 +10:00
design nosepass template, add tests, add template previews
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
import { Injectable } from "@nestjs/common";
|
||||
import { HealthIndicator, HealthIndicatorResult } from "@nestjs/terminus";
|
||||
import { withTimeout } from "@reactive-resume/utils";
|
||||
|
||||
import { PrinterService } from "../printer/printer.service";
|
||||
|
||||
@ -12,8 +11,7 @@ export class BrowserHealthIndicator extends HealthIndicator {
|
||||
|
||||
async isHealthy(): Promise<HealthIndicatorResult> {
|
||||
try {
|
||||
const version = await withTimeout(this.printerService.getVersion(), 5000);
|
||||
// const version = await this.printerService.getVersion();
|
||||
const version = await this.printerService.getVersion();
|
||||
|
||||
return this.getStatus("browser", true, { version });
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user