fix: fixing some errors in workspace and seeding

This commit is contained in:
2026-07-05 14:17:24 +03:30
parent c5b2cb93f0
commit d4bd593f5b
5 changed files with 36 additions and 11 deletions
@@ -12,7 +12,7 @@ export class WorkspaceRepository extends Repository<TMWorkspace> {
async findByUser(userId: string): Promise<TMWorkspace[]> {
return this.createQueryBuilder("workspace")
.innerJoin("workspace.users", "users")
.where("user.id = :userId", { userId })
.where("users.id = :userId", { userId })
.getMany();
}
}