chore: cleanup unecessary log lines

This commit is contained in:
Mohamed Sohail 2024-02-05 17:03:15 +03:00
parent 5b1e6db830
commit 8f98dd7aa8
Signed by: kamikazechaser
GPG Key ID: 7DD45520C01CD85D
2 changed files with 0 additions and 5 deletions

View File

@ -3,7 +3,6 @@ package hooks
import (
"database/sql"
"fmt"
"log"
"github.com/grassrootseconomics/farmstar-survey-backend/internal/worker"
"github.com/pocketbase/dbx"
@ -12,7 +11,6 @@ import (
func (r *HooksContainer) bootstrapTransactionHook() {
r.pb.OnModelAfterCreate("transactions").Add(func(e *core.ModelEvent) error {
log.Println("hook?")
transactionRecord, err := r.pb.Dao().FindRecordById("transactions", e.Model.GetId())
if err != nil {
return err

View File

@ -2,7 +2,6 @@ package router
import (
"fmt"
"log"
"time"
"github.com/labstack/echo/v5"
@ -111,9 +110,7 @@ func (r *RouterContainer) bootstrapTransactionRoute() {
txForm.LoadData(txData)
log.Println("pre_submit")
if err := txForm.Submit(); err != nil {
log.Println(err)
return apis.NewBadRequestError("Failed to submit tx details", err)
}