refactor: session repository (#15957)

This commit is contained in:
Jason Rasmussen
2025-02-07 18:16:40 -05:00
committed by GitHub
parent d7d4d22fe0
commit 758449e9f0
11 changed files with 38 additions and 57 deletions

View File

@@ -1,4 +1,4 @@
import { SessionEntity } from 'src/entities/session.entity';
import { SessionItem } from 'src/types';
export class SessionResponseDto {
id!: string;
@@ -9,7 +9,7 @@ export class SessionResponseDto {
deviceOS!: string;
}
export const mapSession = (entity: SessionEntity, currentId?: string): SessionResponseDto => ({
export const mapSession = (entity: SessionItem, currentId?: string): SessionResponseDto => ({
id: entity.id,
createdAt: entity.createdAt.toISOString(),
updatedAt: entity.updatedAt.toISOString(),