refactor: offlineRoles => roles

This commit is contained in:
moughxyz
2023-01-19 17:27:20 -06:00
parent 2cded4b2d1
commit 23eb61ee5f
3 changed files with 3 additions and 3 deletions
@@ -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
}
| {