@@ -278,7 +278,7 @@ import BrowserMixin from '@/mixins/browser'
278278import { SupportedLocales , DateFormats , TimeFormats } from ' @/globals'
279279import type { OutputPin } from ' @/store/printer/types'
280280import type { PrintEtaCalculation , PrintInProgressLayout , PrintProgressCalculation } from ' @/store/config/types'
281- import { httpClientActions } from ' @/api/httpClientActions '
281+ import { SocketActions } from ' @/api/socketActions '
282282import { consola } from ' consola'
283283import { readFileAsTextAsync } from ' @/util/file-system-entry'
284284import { EventBus } from ' @/eventBus'
@@ -617,9 +617,9 @@ export default class GeneralSettings extends Mixins(StateMixin, BrowserMixin) {
617617
618618 async handleBackupSettings () {
619619 try {
620- const response = await httpClientActions . serverDatabaseItemGet ( ' fluidd ' )
620+ const response = await SocketActions . serverDatabaseGetItem ( )
621621
622- const data = response .data ?. result ?. value
622+ const data = response .value
623623
624624 if (data ) {
625625 const backupData = toFluiddContent (' settings-backup' , data )
@@ -654,7 +654,7 @@ export default class GeneralSettings extends Mixins(StateMixin, BrowserMixin) {
654654 }
655655
656656 for (const key in backupData .data ) {
657- await httpClientActions . serverDatabaseItemPost ( ' fluidd ' , key , backupData .data [key ])
657+ await SocketActions . serverDatabasePostItem ( key , backupData .data [key ])
658658 }
659659
660660 window .location .reload ()
0 commit comments