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