aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/src/stores/Service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/main/src/stores/Service.ts')
-rw-r--r--packages/main/src/stores/Service.ts7
1 files changed, 2 insertions, 5 deletions
diff --git a/packages/main/src/stores/Service.ts b/packages/main/src/stores/Service.ts
index 5302dd4..abef7c2 100644
--- a/packages/main/src/stores/Service.ts
+++ b/packages/main/src/stores/Service.ts
@@ -19,18 +19,15 @@
19 */ 19 */
20 20
21import type { UnreadCount } from '@sophie/service-shared'; 21import type { UnreadCount } from '@sophie/service-shared';
22import { Service as ServiceBase } from '@sophie/shared'; 22import { defineServiceModel } from '@sophie/shared';
23import { Instance, getSnapshot } from 'mobx-state-tree'; 23import { Instance, getSnapshot } from 'mobx-state-tree';
24 24
25import type { ServiceView } from '../infrastructure/electron/types'; 25import type { ServiceView } from '../infrastructure/electron/types';
26import overrideProps from '../utils/overrideProps';
27 26
28import ServiceSettings from './ServiceSettings'; 27import ServiceSettings from './ServiceSettings';
29import type ServiceConfig from './config/ServiceConfig'; 28import type ServiceConfig from './config/ServiceConfig';
30 29
31const Service = overrideProps(ServiceBase, { 30const Service = defineServiceModel(ServiceSettings)
32 settings: ServiceSettings,
33})
34 .views((self) => ({ 31 .views((self) => ({
35 get config(): ServiceConfig { 32 get config(): ServiceConfig {
36 const { id, settings } = self; 33 const { id, settings } = self;