fix: cleanup drizzle refactor

This commit is contained in:
Henry
2025-04-24 22:53:22 +01:00
parent 0c3ab8b890
commit d40760d2ab
9 changed files with 47 additions and 33 deletions

View File

@@ -209,7 +209,7 @@ export const importRouter = createTRPCRouter({
const newLabels = await labelRepo.bulkCreate(ctx.db, labelsInsert);
if (newLabels?.length)
if (newLabels.length)
createdLabels = newLabels
.map((label, index) => ({
id: label.id,