Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbosco committed Jan 2, 2025
1 parent 1961589 commit 4eb7848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/backfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = functions.firestore.document(config.typesenseBackfillTriggerDoc

lastDoc = thisBatch.docs.at(-1) ?? null;
try {
await typesense.collections(encodeURIComponent(config.typesenseCollectionName)).documents().import(currentDocumentsBatch, { action: 'upsert' });
await typesense.collections(encodeURIComponent(config.typesenseCollectionName)).documents().import(currentDocumentsBatch, {action: "upsert"});
functions.logger.info(`Imported ${currentDocumentsBatch.length} documents into Typesense`);
} catch (error) {
functions.logger.error(`Import error in a batch of documents from ${currentDocumentsBatch[0].id} to ${lastDoc.id}`, error);
Expand Down

0 comments on commit 4eb7848

Please sign in to comment.