Skip to content

Commit

Permalink
fix(sheets): loadHeaderRow
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-hauser committed Nov 1, 2024
1 parent a7e1764 commit 4561df9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bot/storage/sheets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4561df9

Please sign in to comment.