Skip to content

Commit 2cfe5ff

Browse files
Merge branch 'main' into feat/user-db-for-user-usage
2 parents 7ab5ffb + dc17177 commit 2cfe5ff

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/frontend/src/lib/services/auth.config.services.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
setRule
88
} from '$lib/api/satellites.api';
99
import { DEFAULT_RATE_CONFIG_TIME_PER_TOKEN_NS } from '$lib/constants/data.constants';
10+
import { DbCollectionType } from '$lib/constants/rules.constants';
1011
import { SATELLITE_v0_0_17 } from '$lib/constants/version.constants';
1112
import { i18n } from '$lib/stores/i18n.store';
1213
import { 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

src/frontend/src/lib/services/collection.services.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import type { CollectionType, Rule, SetRule } from '$declarations/satellite/satellite.did';
22
import { getRule, satelliteVersion, setRule as setRuleApi } from '$lib/api/satellites.api';
33
import { 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';
510
import { SATELLITE_v0_0_21 } from '$lib/constants/version.constants';
611
import { i18n } from '$lib/stores/i18n.store';
712
import { 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) };

0 commit comments

Comments
 (0)