Add transaction adjustment on cancellation (when amount differs)
All checks were successful
build docker image / docker-build (push) Successful in 2m16s

This commit is contained in:
2025-06-06 16:54:36 +03:00
parent ebb213a3cc
commit a5c9403576

View File

@ -8,7 +8,6 @@ import (
"gitea.stuzer.link/stuzer05/go-firefly3/v2" "gitea.stuzer.link/stuzer05/go-firefly3/v2"
"gitea.stuzer.link/stuzer05/go-monobank" "gitea.stuzer.link/stuzer05/go-monobank"
"github.com/antihax/optional" "github.com/antihax/optional"
"log"
"math" "math"
"os" "os"
"slices" "slices"
@ -114,7 +113,6 @@ func ImportTransaction(monobankTransaction monobank.WebHookResponse) error {
} }
_, _, err := App().Firefly3Client.TransactionsApi.UpdateTransaction(context.Background(), body, tRows.Id, &opts) _, _, err := App().Firefly3Client.TransactionsApi.UpdateTransaction(context.Background(), body, tRows.Id, &opts)
if err != nil { if err != nil {
log.Println(err)
return err return err
} }
} }