Properly set submitted on PUT, return new status properties on comms

This commit is contained in:
Eli Ribble 2026-05-02 00:41:31 +00:00
parent 431435f8bd
commit 67c99436d1
No known key found for this signature in database
4 changed files with 52 additions and 11 deletions

View file

@ -306,7 +306,7 @@ export interface PublicReportComplianceOptions extends PublicReportOptions {
gate_code: string;
has_dog: boolean;
permission_type: PermissionType;
submitted: string;
submitted?: Date;
wants_scheduled: boolean;
}
export interface PublicReportComplianceUpdate extends PublicReportUpdate {
@ -350,6 +350,7 @@ export class PublicReportCompliance extends PublicReport {
...json,
created: new Date(json.created),
log: json.log.map((l: LogEntryDTO) => LogEntry.fromJSON(l)),
submitted: json.submitted ? new Date(json.submitted) : undefined,
});
}
}