mirror of
https://github.com/docmost/docmost.git
synced 2026-07-25 14:44:42 +10:00
refactor(base): rename baseId to pageId in csv-export and page-resolver services
This commit is contained in:
@@ -40,9 +40,9 @@ export class BaseCsvExportService {
|
|||||||
throw new NotFoundException('Base not found');
|
throw new NotFoundException('Base not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
const properties = await this.basePropertyRepo.findByBaseId(baseId);
|
const properties = await this.basePropertyRepo.findByPageId(baseId);
|
||||||
|
|
||||||
const fileName = sanitize(base.name || 'base') + '.csv';
|
const fileName = sanitize(base.title || 'base') + '.csv';
|
||||||
|
|
||||||
const stringifier = stringify({
|
const stringifier = stringify({
|
||||||
header: true,
|
header: true,
|
||||||
@@ -85,7 +85,7 @@ export class BaseCsvExportService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for await (const chunk of this.baseRowRepo.streamByBaseId(baseId, {
|
for await (const chunk of this.baseRowRepo.streamByPageId(baseId, {
|
||||||
workspaceId,
|
workspaceId,
|
||||||
chunkSize: CHUNK_SIZE,
|
chunkSize: CHUNK_SIZE,
|
||||||
})) {
|
})) {
|
||||||
|
|||||||
Reference in New Issue
Block a user