refactor(base): rename baseId methods to pageId in repos and BasePropertyService

This commit is contained in:
Philipinho
2026-04-27 01:18:32 +01:00
parent a2917bad6d
commit 2b4a9b8a00
4 changed files with 17 additions and 17 deletions
@@ -26,7 +26,7 @@ export class BasePropertyRepo {
return qb.executeTakeFirst() as Promise<BaseProperty | undefined>;
}
async findByBaseId(
async findByPageId(
pageId: string,
opts?: { trx?: KyselyTransaction },
): Promise<BaseProperty[]> {
@@ -383,7 +383,7 @@ export class BaseRowRepo {
* that top-level key. Type-conversion callers pass the property ID so
* we don't drag 100k empty rows through Node just to rewrite a dozen.
*/
async *streamByBaseId(
async *streamByPageId(
pageId: string,
opts: {
workspaceId: string;
@@ -29,7 +29,7 @@ export class BaseViewRepo {
.executeTakeFirst() as Promise<BaseView | undefined>;
}
async findByBaseId(
async findByPageId(
pageId: string,
opts: WorkspaceOpts,
): Promise<BaseView[]> {
@@ -43,7 +43,7 @@ export class BaseViewRepo {
.execute() as Promise<BaseView[]>;
}
async countByBaseId(
async countByPageId(
pageId: string,
opts: WorkspaceOpts,
): Promise<number> {