update signal model

This commit is contained in:
Daniel Appelgren
2021-11-19 09:34:00 +01:00
parent c6bbfb1bf4
commit fbd04112fb
2 changed files with 6 additions and 6 deletions

View File

@@ -115,10 +115,10 @@ export class SignalFormComponent {
const postRequest: SignalRequest = { const postRequest: SignalRequest = {
genomforandeReferens: +genomforandeReferens, genomforandeReferens: +genomforandeReferens,
typ: type, type,
omfattning, omfattning,
omfattning_procent: omfattning === 'deltid' ? percent : null, omfattningPercent: omfattning === 'deltid' ? percent : null,
startdatum: formatDate(startDate), startDate: formatDate(startDate),
}; };
this.signalFormService this.signalFormService

View File

@@ -1,7 +1,7 @@
export interface SignalRequest { export interface SignalRequest {
genomforandeReferens: number; genomforandeReferens: number;
typ: 'arbete' | 'utbildning'; type: 'arbete' | 'utbildning';
omfattning: 'heltid' | 'deltid'; omfattning: 'heltid' | 'deltid';
omfattning_procent: number; omfattningPercent: number;
startdatum: string; startDate: string;
} }