Skip to content

Commit

Permalink
feat(soffit-pwa): send deviceId in request
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Feb 6, 2023
1 parent afd6af0 commit 714dd3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions uniquely/soffit-pwa/src/director/form-submit-handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {serviceRequest} from '@alwatr/fetch';
import {message} from '@alwatr/i18n';
import {getDeviceUuid} from '@alwatr/math';
import {commandHandler} from '@alwatr/signal';
import {snackbarSignalTrigger} from '@alwatr/ui-kit/snackbar/show-snackbar.js';
import {validator, type JsonSchema} from '@alwatr/validator';
Expand Down Expand Up @@ -47,6 +48,9 @@ commandHandler.define<FormData, boolean>('form-submit', async (form: FormData):
form: form.formId,
},
token: config.token,
headers: {
'device-id': getDeviceUuid(),
},
bodyJson,
});
}
Expand Down

0 comments on commit 714dd3b

Please sign in to comment.