fix(CurrentRecipePointer): 🐛 Fix "set from cache" bug

Add validator to check if current recipe pointer is set-able or not
This commit is contained in:
pakintada@gmail.com 2024-04-08 16:47:59 +07:00
parent 64a98cea51
commit 4219c1cb43
3 changed files with 90 additions and 16 deletions

View file

@ -28,6 +28,8 @@ import (
"go.uber.org/zap"
)
const VERSION = "1.0.1b"
type Server struct {
server *http.Server
data *data.Data
@ -63,6 +65,7 @@ func (s *Server) Run() error {
s.createHandler()
// log.Printf("Server running on %s", s.server.Addr)
s.taoLogger.Log.Info("Server running", zap.String("addr", s.server.Addr))
s.taoLogger.Log.Info("Version", zap.String("version", VERSION))
defer func(Log *zap.Logger) {
err := Log.Sync()