1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-09 23:17:29 +02:00

refactor: more database types (#17490)

This commit is contained in:
Jason Rasmussen
2025-04-09 10:24:38 -04:00
committed by GitHub
parent 04b03f2924
commit 8943ec23ba
12 changed files with 123 additions and 148 deletions

View File

@ -1,6 +1,6 @@
import { Session } from 'src/database';
import { AuthDto } from 'src/dtos/auth.dto';
import { SharedLinkEntity } from 'src/entities/shared-link.entity';
import { SessionItem } from 'src/types';
const authUser = {
admin: {
@ -27,7 +27,7 @@ export const authStub = {
user: authUser.user1,
session: {
id: 'token-id',
} as SessionItem,
} as Session,
}),
user2: Object.freeze<AuthDto>({
user: {
@ -40,7 +40,7 @@ export const authStub = {
},
session: {
id: 'token-id',
} as SessionItem,
} as Session,
}),
adminSharedLink: Object.freeze<AuthDto>({
user: authUser.admin,