bopodev-db 0.1.19 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.turbo/turbo-build.log
CHANGED
package/package.json
CHANGED
package/src/repositories.ts
CHANGED
|
@@ -478,10 +478,11 @@ async function hydrateProjectsWithWorkspaces(
|
|
|
478
478
|
>;
|
|
479
479
|
}
|
|
480
480
|
const projectIds = projectRows.map((project) => project.id);
|
|
481
|
+
const companyIds = Array.from(new Set(projectRows.map((project) => project.companyId)));
|
|
481
482
|
const workspaces = await db
|
|
482
483
|
.select()
|
|
483
484
|
.from(projectWorkspaces)
|
|
484
|
-
.where(inArray(projectWorkspaces.projectId, projectIds))
|
|
485
|
+
.where(and(inArray(projectWorkspaces.projectId, projectIds), inArray(projectWorkspaces.companyId, companyIds)))
|
|
485
486
|
.orderBy(desc(projectWorkspaces.isPrimary), asc(projectWorkspaces.createdAt), asc(projectWorkspaces.id));
|
|
486
487
|
const workspacesByProject = new Map<string, Array<typeof projectWorkspaces.$inferSelect>>();
|
|
487
488
|
for (const workspace of workspaces) {
|
package/.turbo/turbo-lint.log
DELETED