mirror of
https://github.com/grassrootseconomics/farmstar-survey-backend.git
synced 2024-12-04 15:36:48 +01:00
chore: cleanup unecessary log lines
This commit is contained in:
parent
5b1e6db830
commit
8f98dd7aa8
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user