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 = {
genomforandeReferens: +genomforandeReferens,
typ: type,
type,
omfattning,
omfattning_procent: omfattning === 'deltid' ? percent : null,
startdatum: formatDate(startDate),
omfattningPercent: omfattning === 'deltid' ? percent : null,
startDate: formatDate(startDate),
};
this.signalFormService

View File

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