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

View File

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