This commit is contained in:
2025-12-16 15:42:38 +01:00
parent 29410708c8
commit 362894d1a5
147 changed files with 780 additions and 375 deletions

View File

@@ -1,4 +1,5 @@
import { User } from '../../domain/entities/User';
import { IUserRepository } from '../../domain/repositories/IUserRepository';
// No direct import of apps/api DTOs in core module
/**
@@ -7,9 +8,13 @@ import { User } from '../../domain/entities/User';
* Retrieves the current user session information.
*/
export class GetCurrentSessionUseCase {
constructor(private userRepo: IUserRepository) {}
async execute(userId: string): Promise<User | null> {
// TODO: Implement actual logic to retrieve user and session data
console.warn('GetCurrentSessionUseCase: Method not implemented.');
return null;
const stored = await this.userRepo.findById(userId);
if (!stored) {
return null;
}
return User.fromStored(stored);
}
}