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) {