diff --git a/apps/server/src/database/repos/page-template-references/page-template-references.repo.ts b/apps/server/src/database/repos/page-template-references/page-template-references.repo.ts index a678422f..8493e901 100644 --- a/apps/server/src/database/repos/page-template-references/page-template-references.repo.ts +++ b/apps/server/src/database/repos/page-template-references/page-template-references.repo.ts @@ -22,21 +22,6 @@ export class PageTemplateReferencesRepo { .execute(); } - async findReferencePageIdsBySource( - sourcePageId: string, - workspaceId: string, - trx?: KyselyTransaction, - ): Promise { - const rows = await dbOrTx(this.db, trx) - .selectFrom('pageTemplateReferences') - .select('referencePageId') - .distinct() - .where('workspaceId', '=', workspaceId) - .where('sourcePageId', '=', sourcePageId) - .execute(); - return rows.map((r) => r.referencePageId); - } - async insertMany( rows: InsertablePageTemplateReference[], trx?: KyselyTransaction,