@ministryofjustice/hmpps-digital-prison-reporting-frontend
Version:
The Digital Prison Reporting Frontend contains templates and code to help display data effectively in UI applications.
21 lines (18 loc) • 700 B
JavaScript
import logger from '../../utils/logger.js';
class MissingReportService {
missingReportClient;
enabled;
constructor(missingReportClient, serviceFeatureConfig) {
this.missingReportClient = missingReportClient;
this.enabled = Boolean(serviceFeatureConfig.collections);
if (!this.enabled)
logger.info(`Missing reports: disabled `);
}
submitMissingReportEntry(token, reportId, variantId, reason) {
if (!this.enabled)
return undefined;
return this.missingReportClient.submitMissingReportEntry(token, reportId, variantId, reason);
}
}
export { MissingReportService };
//# sourceMappingURL=missingReportService.js.map