refactor(base): update task files to use renamed repo methods

This commit is contained in:
Philipinho
2026-04-27 01:22:09 +01:00
parent 16161d793b
commit 54de3a7791
2 changed files with 5 additions and 5 deletions
@@ -31,7 +31,7 @@ export async function processBaseFormulaRecompute(
},
): Promise<{ processed: number; errored: number }> {
const { baseId, workspaceId, propertyIds, rowIds } = data;
const properties = await basePropertyRepo.findByBaseId(baseId);
const properties = await basePropertyRepo.findByPageId(baseId);
const targets = properties.filter(
(p) => p.type === "formula" && propertyIds.includes(p.id),
);
@@ -46,7 +46,7 @@ export async function processBaseFormulaRecompute(
let processed = 0;
let errored = 0;
for await (const chunk of baseRowRepo.streamByBaseId(baseId, {
for await (const chunk of baseRowRepo.streamByPageId(baseId, {
workspaceId,
chunkSize: CHUNK_SIZE,
trx: opts?.trx,
@@ -90,7 +90,7 @@ export async function processBaseFormulaRecompute(
// so passing actorId: undefined preserves last_updated_by_id while still
// bumping updated_at — matches spec "only lastEditedAt moves".
await baseRowRepo.batchUpdateCells(updates, {
baseId,
pageId: baseId,
workspaceId,
actorId: undefined,
trx: opts?.trx,
@@ -59,7 +59,7 @@ export async function processBaseTypeConversion(
// rewriting — everything else is already consistent with the new type
// (empty value → empty value). Skips the full-table scan on bases
// where the property was only ever set on a few rows.
for await (const chunk of baseRowRepo.streamByBaseId(baseId, {
for await (const chunk of baseRowRepo.streamByPageId(baseId, {
workspaceId,
chunkSize: CHUNK_SIZE,
trx,
@@ -105,7 +105,7 @@ export async function processBaseTypeConversion(
if (updates.length > 0) {
await baseRowRepo.batchUpdateCells(updates, {
baseId,
pageId: baseId,
workspaceId,
actorId,
trx,