Skip to content

Commit edc1a85

Browse files
committed
fix: metadata sync task
1 parent affd1b2 commit edc1a85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

trigger/research-sync/sync-metadata.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const getRetrySeconds = (retryAfter: string | null | undefined) => {
4141
};
4242

4343
export const syncMetadata = task({
44-
id: 'openai-task',
44+
id: 'metadata-sync',
4545
run: async (_payload: ResearchSyncPayload) => {
4646
const payload = researchSyncPayloadSchema.parse(_payload);
4747

@@ -73,7 +73,8 @@ export const syncMetadata = task({
7373
});
7474

7575
if (!parsedData.ok) {
76-
throw new Error('Error parsing data');
76+
logger.error(`Error parsing data: ${parsedData.error}`);
77+
throw new Error(`Error parsing data: ${parsedData.error}`);
7778
}
7879

7980
const batchCount = Math.ceil(parsedData.output.records.length / batchSize);

0 commit comments

Comments
 (0)