change sheet use api key instead of use user credential

This commit is contained in:
Kenta420 2023-10-04 16:41:23 +07:00
parent 8ccbbc8647
commit 41812591b7
4 changed files with 22 additions and 17 deletions

View file

@ -438,7 +438,7 @@ func (s *Server) createHandler() {
})
// Recipe Router
sheetService, err := sheet.NewSheetService(context.Background())
sheetService, err := sheet.NewSheetService(context.Background(), s.cfg)
if err != nil {
Log.Fatal("Error while trying to create sheet service: ", zap.Error(err))