mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
refactor: remove session entity (#17466)
* refactor: remove session entity * fix: test * update sql * remote export
This commit is contained in:
parent
49be6d7fd8
commit
e5ca79dd44
5 changed files with 35 additions and 68 deletions
6
server/test/fixtures/session.stub.ts
vendored
6
server/test/fixtures/session.stub.ts
vendored
|
|
@ -1,8 +1,8 @@
|
|||
import { SessionEntity } from 'src/entities/session.entity';
|
||||
import { SessionItem } from 'src/types';
|
||||
import { userStub } from 'test/fixtures/user.stub';
|
||||
|
||||
export const sessionStub = {
|
||||
valid: Object.freeze<SessionEntity>({
|
||||
valid: Object.freeze<SessionItem>({
|
||||
id: 'token-id',
|
||||
token: 'auth_token',
|
||||
userId: userStub.user1.id,
|
||||
|
|
@ -13,7 +13,7 @@ export const sessionStub = {
|
|||
deviceOS: '',
|
||||
updateId: 'uuid-v7',
|
||||
}),
|
||||
inactive: Object.freeze<SessionEntity>({
|
||||
inactive: Object.freeze<SessionItem>({
|
||||
id: 'not_active',
|
||||
token: 'auth_token',
|
||||
userId: userStub.user1.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue