File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
src/frontend/src/lib/services Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 77 setRule
88} from '$lib/api/satellites.api' ;
99import { DEFAULT_RATE_CONFIG_TIME_PER_TOKEN_NS } from '$lib/constants/data.constants' ;
10+ import { DbCollectionType } from '$lib/constants/rules.constants' ;
1011import { SATELLITE_v0_0_17 } from '$lib/constants/version.constants' ;
1112import { i18n } from '$lib/stores/i18n.store' ;
1213import { toasts } from '$lib/stores/toasts.store' ;
@@ -173,7 +174,7 @@ const updateRule = async ({
173174 : undefined
174175 )
175176 } ,
176- type : { Db : null } ,
177+ type : DbCollectionType ,
177178 identity,
178179 collection : '#user' ,
179180 satelliteId
Original file line number Diff line number Diff line change 11import type { CollectionType , Rule , SetRule } from '$declarations/satellite/satellite.did' ;
22import { getRule , satelliteVersion , setRule as setRuleApi } from '$lib/api/satellites.api' ;
33import { DEFAULT_RATE_CONFIG_TIME_PER_TOKEN_NS } from '$lib/constants/data.constants' ;
4- import { MemoryStable , type MemoryText , type PermissionText } from '$lib/constants/rules.constants' ;
4+ import {
5+ DbCollectionType ,
6+ MemoryStable ,
7+ type MemoryText ,
8+ type PermissionText
9+ } from '$lib/constants/rules.constants' ;
510import { SATELLITE_v0_0_21 } from '$lib/constants/version.constants' ;
611import { i18n } from '$lib/stores/i18n.store' ;
712import { toasts } from '$lib/stores/toasts.store' ;
@@ -90,7 +95,7 @@ export const getRuleUser = async ({
9095 satelliteId,
9196 collection : '#user' ,
9297 identity,
93- type : { Db : null }
98+ type : DbCollectionType
9499 } ) ;
95100
96101 return { result : 'success' , rule : fromNullable ( result ) } ;
You can’t perform that action at this time.
0 commit comments