This commit is contained in:
Fran Jurmanović
2025-05-06 23:59:01 +02:00
parent a1bcc080f1
commit a22ab15a02
5 changed files with 24 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ import (
"encoding/json"
"errors"
"io"
"log"
"os"
"path/filepath"
"time"
@@ -166,6 +167,7 @@ func (as ConfigService) GetConfig(ctx *fiber.Ctx) (interface{}, error) {
server := as.serverRepository.GetFirst(ctx.UserContext(), serverID)
if server == nil {
log.Print("Server not found")
return nil, fiber.NewError(404, "Server not found")
}
@@ -190,6 +192,7 @@ func (as ConfigService) GetConfigs(ctx *fiber.Ctx) (*model.Configurations, error
server := as.serverRepository.GetFirst(ctx.UserContext(), serverID)
if server == nil {
log.Print("Server not found")
return nil, fiber.NewError(404, "Server not found")
}