🔧 updating GSHEET_ID

This commit is contained in:
ChatonDeAru 2024-03-23 22:24:17 +01:00 committed by ChatonDeAru (Romain)
parent a89f575808
commit f88dbc36d2
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ export default {
HOST: "localhost",
PORT: 3000,
API_URL: "http://localhost:3000",
GOOGLE_SHEET_ID: "1p8TDSNlgKC7sm1a_wX44NrkpWEH3-Zey1O2ZjYfPsn4",
GOOGLE_SHEET_ID: "1g-GB1NHLtUAQnQkbyo_5Lv6GzJ58DeOsUTrHlIVi01M",
APP: {
htmlAttributes: { lang: "en" },
title: "Force Orange",

View File

@ -379,7 +379,7 @@ export class Sheet<
return null
}
// Authentication
const doc = new GoogleSpreadsheet("1p8TDSNlgKC7sm1a_wX44NrkpWEH3-Zey1O2ZjYfPsn4")
const doc = new GoogleSpreadsheet("1g-GB1NHLtUAQnQkbyo_5Lv6GzJ58DeOsUTrHlIVi01M")
await doc.useServiceAccountAuth(JSON.parse(creds))
await doc.loadInfo()
return doc.sheetsByTitle[this.sheetName]