Skip to content

Commit

Permalink
fix: add validation for gsheet service creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbchaos authored and Mryashbhardwaj committed Dec 18, 2024
1 parent abd4f49 commit cd29acf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/store/maxcompute/sheet_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ func (s *SyncerService) getGsheet(ctx context.Context, tnnt tenant.Tenant, sheet
if err != nil {
return "", err
}

sheets, err := gsheet.NewGSheets(ctx, secret.Value())
if err != nil {
return "", err
}

return sheets.GetAsCSV(sheetURI, range_)
}
Expand Down

0 comments on commit cd29acf

Please sign in to comment.