mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(server): allow oauth claim to set 0 for no quota (#7581)
* feat(server): allow oauth claim to set 0 for no quota * PR feedback to remove extra objects from user.stub.ts
This commit is contained in:
parent
8d44afe915
commit
f03381a5b1
3 changed files with 28 additions and 22 deletions
14
server/test/fixtures/user.stub.ts
vendored
14
server/test/fixtures/user.stub.ts
vendored
|
|
@ -23,20 +23,6 @@ export const userDto = {
|
|||
name: 'User with quota',
|
||||
quotaSizeInBytes: 42,
|
||||
},
|
||||
userWithDefaultStorageQuota: {
|
||||
email: 'test@immich.com',
|
||||
name: ' ',
|
||||
oauthId: 'my-auth-user-sub',
|
||||
quotaSizeInBytes: 1_073_741_824,
|
||||
storageLabel: null,
|
||||
},
|
||||
userWithStorageQuotaClaim: {
|
||||
email: 'test@immich.com',
|
||||
name: ' ',
|
||||
oauthId: 'my-auth-user-sub',
|
||||
quotaSizeInBytes: 5_368_709_120,
|
||||
storageLabel: null,
|
||||
},
|
||||
};
|
||||
|
||||
export const userStub = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue