Skip to content

Commit e67d655

Browse files
committed
chore: use process.env.SPREADSHEET_ID instead of a hardcoded string
1 parent a83c10e commit e67d655

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/database/database.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import { GoogleSpreadsheet, GoogleSpreadsheetWorksheet } from 'google-spreadsheet';
22

33
export const database = {
4-
qualFileId: '1ChOEjl5l_Uh5dTd_fRjGJt8z7bFNNOwPlzgRnhOLgTY',
5-
64
async open(): Promise<GoogleSpreadsheet> {
7-
const document = new GoogleSpreadsheet(this.qualFileId);
5+
const document = new GoogleSpreadsheet(process.env.SPREADSHEET_ID);
86
await document.useServiceAccountAuth({
97
client_email: process.env.GOOGLE_SERVICE_ACCOUNT_EMAIL ?? '',
108
private_key: process.env.GOOGLE_PRIVATE_KEY ?? '',

0 commit comments

Comments
 (0)