Properly set submitted on PUT, return new status properties on comms
This commit is contained in:
parent
431435f8bd
commit
67c99436d1
4 changed files with 52 additions and 11 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue