From 596d52312e1157c6146a069f94fdfc197a428073 Mon Sep 17 00:00:00 2001 From: jhonnatan gonzalez rodriguez Date: Tue, 11 Jul 2023 18:35:50 +0200 Subject: [PATCH] add status in review --- auction.js | 4 +++- data.js | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/auction.js b/auction.js index 7eeaae3..37833c1 100644 --- a/auction.js +++ b/auction.js @@ -85,7 +85,9 @@ const getCarModel = async (auctionId, page) => { 'color', ]; - let carModel = {}; + let carModel = { + status: 1, + }; const title = page.locator('.vehicle-header-summary__name'); await title.waitFor({ diff --git a/data.js b/data.js index 2e12d60..0bb0d89 100644 --- a/data.js +++ b/data.js @@ -1,7 +1,11 @@ import { Firestore } from '@google-cloud/firestore'; const db = new Firestore({ - projectId: 'auctions-388714', + projectId: process.env.FIRESTORE_PROJECT_ID, + credentials: { + client_email: process.env.FIRESTORE_CLIENT_EMAIL, + private_key: process.env.FIRESTORE_PRIVATE_KEY, + }, }); export async function addProcessedAuctions(cars) {