debug
This commit is contained in:
parent
c726a94227
commit
97b90146ca
@ -2,6 +2,7 @@ package routes
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"rpi-ci-led/pkg/database"
|
"rpi-ci-led/pkg/database"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
@ -31,8 +32,10 @@ func SetRoutes(e *gin.Engine) {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if b := bucket.Get([]byte("project")); b == nil {
|
if b := bucket.Get([]byte("project")); b == nil {
|
||||||
|
fmt.Println("b ::: ", b)
|
||||||
return nil
|
return nil
|
||||||
} else {
|
} else {
|
||||||
|
fmt.Println("b ::: ", b)
|
||||||
if err := json.Unmarshal(b, &list); err != nil {
|
if err := json.Unmarshal(b, &list); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user