From 6d1b993b77422d2e4ea62a4a19694366e641e948 Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Thu, 21 Mar 2019 13:16:26 -0500 Subject: [PATCH] added account preferences update --- projects/account/src/app/core/http/device.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/account/src/app/core/http/device.service.ts b/projects/account/src/app/core/http/device.service.ts index 6aaf47f..8d45490 100644 --- a/projects/account/src/app/core/http/device.service.ts +++ b/projects/account/src/app/core/http/device.service.ts @@ -49,6 +49,10 @@ export class DeviceService { return this.http.get(preferencesUrl); } + updateAccountPreferences(preferencesForm: FormGroup): void { + this.http.patch(preferencesUrl, preferencesForm.value); + } + addAccountDefaults(defaultsForm: FormGroup) { this.http.post(defaultsUrl, defaultsForm.value).subscribe(); }