mirror of
https://github.com/standardnotes/server
synced 2026-07-14 00:01:54 -04:00
refactor: offlineRoles => roles
This commit is contained in:
@@ -55,7 +55,7 @@ describe('GetUserFeatures', () => {
|
||||
expect(await createUseCase().execute({ email: '[email protected]', offline: true })).toEqual({
|
||||
success: true,
|
||||
features: [{ name: 'foobar' }],
|
||||
offlineRoles: [RoleName.NAMES.ProUser],
|
||||
roles: [RoleName.NAMES.ProUser],
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@@ -20,7 +20,7 @@ export class GetUserFeatures implements UseCaseInterface {
|
||||
return {
|
||||
success: true,
|
||||
features,
|
||||
offlineRoles: roles,
|
||||
roles,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ export type GetUserFeaturesResponse =
|
||||
| {
|
||||
success: true
|
||||
features: FeatureDescription[]
|
||||
offlineRoles?: string[]
|
||||
roles?: string[]
|
||||
userUuid?: string
|
||||
}
|
||||
| {
|
||||
|
||||
Reference in New Issue
Block a user