fix: handle missing tenant_id in tasks service for local dev
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -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[]> {
|
||||
|
||||
Reference in New Issue
Block a user