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

refactor: remove session entity (#17466)

* refactor: remove session entity

* fix: test

* update sql

* remote export
This commit is contained in:
Alex
2025-04-08 11:04:07 -05:00
committed by GitHub
parent 49be6d7fd8
commit e5ca79dd44
5 changed files with 35 additions and 68 deletions

View File

@ -1,6 +1,6 @@
import { AuthDto } from 'src/dtos/auth.dto';
import { SessionEntity } from 'src/entities/session.entity';
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 SessionEntity,
} as SessionItem,
}),
user2: Object.freeze<AuthDto>({
user: {
@ -40,7 +40,7 @@ export const authStub = {
},
session: {
id: 'token-id',
} as SessionEntity,
} as SessionItem,
}),
adminSharedLink: Object.freeze<AuthDto>({
user: authUser.admin,