mirror of
https://github.com/docmost/docmost.git
synced 2026-07-12 20:34:44 +10:00
refactor(base): rename baseId methods to pageId in repos and BasePropertyService
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user