chore: migrate to gitea
Some checks failed
golangci-lint / lint (push) Successful in 1m33s
Test / test (push) Failing after 2m16s

This commit is contained in:
2026-01-27 00:12:32 +01:00
parent 79d9f55fdc
commit f81c902ca6
3170 changed files with 1216494 additions and 1586 deletions

View File

@@ -1,13 +1,14 @@
package user
import (
"budget/handler"
"budget/internal/storage/dao/postgresql"
"budget/internal/storage/model"
"budget/internal/utils"
"net/http"
"strings"
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/handler"
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/internal/storage/dao/postgresql"
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/internal/storage/model"
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/internal/utils"
"github.com/gin-gonic/gin"
"google.golang.org/api/oauth2/v2"
)
@@ -42,7 +43,7 @@ func (hc *Context) ConnectUser(c *gin.Context) {
return
}
oauth2Service, err := oauth2.New(&http.Client{})
oauth2Service, err := oauth2.NewService(c)
if oauth2Service == nil {
utils.GetLoggerFromCtx(c).WithError(err).Error(err)
utils.JSONError(c.Writer, model.ErrInternalServer)
@@ -87,7 +88,7 @@ func (hc *Context) CreateUser(c *gin.Context) {
return
}
oauth2Service, err := oauth2.New(&http.Client{})
oauth2Service, err := oauth2.NewService(c)
if oauth2Service == nil {
utils.GetLogger().WithError(err).Error(err)
utils.JSONError(c.Writer, model.ErrInternalServer)