From 0f9dee4b2804788ea136a769f08c6326b60cbfb4 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Mon, 27 Apr 2026 01:08:59 +0100 Subject: [PATCH] refactor(base): rename baseId to pageId in BasePropertyRepo --- apps/server/src/database/repos/base/base-property.repo.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/server/src/database/repos/base/base-property.repo.ts b/apps/server/src/database/repos/base/base-property.repo.ts index 53378be8f..adc876652 100644 --- a/apps/server/src/database/repos/base/base-property.repo.ts +++ b/apps/server/src/database/repos/base/base-property.repo.ts @@ -27,28 +27,28 @@ export class BasePropertyRepo { } async findByBaseId( - baseId: string, + pageId: string, opts?: { trx?: KyselyTransaction }, ): Promise { const db = dbOrTx(this.db, opts?.trx); return db .selectFrom('baseProperties') .selectAll() - .where('baseId', '=', baseId) + .where('pageId', '=', pageId) .where('deletedAt', 'is', null) .orderBy('position', 'asc') .execute() as Promise; } async getLastPosition( - baseId: string, + pageId: string, trx?: KyselyTransaction, ): Promise { const db = dbOrTx(this.db, trx); const result = await db .selectFrom('baseProperties') .select('position') - .where('baseId', '=', baseId) + .where('pageId', '=', pageId) .orderBy(sql`position COLLATE "C"`, 'desc') .limit(1) .executeTakeFirst();