mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore(server): remove unused code (#13367)
This commit is contained in:
parent
8daa8073ae
commit
930df46f74
26 changed files with 34 additions and 415 deletions
40
server/test/fixtures/user.stub.ts
vendored
40
server/test/fixtures/user.stub.ts
vendored
|
|
@ -2,30 +2,6 @@ import { UserEntity } from 'src/entities/user.entity';
|
|||
import { UserAvatarColor, UserMetadataKey } from 'src/enum';
|
||||
import { authStub } from 'test/fixtures/auth.stub';
|
||||
|
||||
export const userDto = {
|
||||
user1: {
|
||||
email: 'user1@immich.app',
|
||||
password: 'Password123',
|
||||
name: 'User 1',
|
||||
},
|
||||
user2: {
|
||||
email: 'user2@immich.app',
|
||||
password: 'Password123',
|
||||
name: 'User 2',
|
||||
},
|
||||
user3: {
|
||||
email: 'user3@immich.app',
|
||||
password: 'Password123',
|
||||
name: 'User 3',
|
||||
},
|
||||
userWithQuota: {
|
||||
email: 'quota-user@immich.app',
|
||||
password: 'Password123',
|
||||
name: 'User with quota',
|
||||
quotaSizeInBytes: 42,
|
||||
},
|
||||
};
|
||||
|
||||
export const userStub = {
|
||||
admin: Object.freeze<UserEntity>({
|
||||
...authStub.admin.user,
|
||||
|
|
@ -100,22 +76,6 @@ export const userStub = {
|
|||
quotaSizeInBytes: null,
|
||||
quotaUsageInBytes: 0,
|
||||
}),
|
||||
externalPathRoot: Object.freeze<UserEntity>({
|
||||
...authStub.user1.user,
|
||||
password: 'immich_password',
|
||||
name: 'immich_name',
|
||||
storageLabel: 'label-1',
|
||||
oauthId: '',
|
||||
shouldChangePassword: false,
|
||||
profileImagePath: '',
|
||||
createdAt: new Date('2021-01-01'),
|
||||
deletedAt: null,
|
||||
updatedAt: new Date('2021-01-01'),
|
||||
tags: [],
|
||||
assets: [],
|
||||
quotaSizeInBytes: null,
|
||||
quotaUsageInBytes: 0,
|
||||
}),
|
||||
profilePath: Object.freeze<UserEntity>({
|
||||
...authStub.user1.user,
|
||||
password: 'immich_password',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue