fix: fixing some errors in workspace and seeding
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user