fix: handle missing tenant_id in tasks service for local dev
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
gitmuhammedalbayrak
2025-11-30 21:19:49 +03:00
parent 80d17e9cfb
commit 8967497d25

View File

@@ -14,8 +14,9 @@ export class TasksService {
) { }
private getTenantId(): string {
// For local development without authentication, use default tenant
const user = (this.request as any).user;
return user.tenantId;
return user?.tenantId || '00000000-0000-0000-0000-000000000001';
}
async findAll(projectId: string): Promise<Task[]> {