diff --git a/src/bot/storage/sheets.ts b/src/bot/storage/sheets.ts index a08ab4a..faf13ba 100644 --- a/src/bot/storage/sheets.ts +++ b/src/bot/storage/sheets.ts @@ -117,6 +117,7 @@ export class GoogleSheetsStorage implements TransactionStorage { * Load hashes from the "hash" column, assuming the first row is a header row */ private async loadHashes(sheet: GoogleSpreadsheetWorksheet) { + await sheet.loadHeaderRow(); const hashColumnNumber = sheet.headerValues.indexOf("hash"); if (hashColumnNumber === -1) { throw new Error("Hash column not found");