From 98d2443679710a18f16eab2d8ed64a580638bdd6 Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 30 Jul 2025 12:00:21 +0300 Subject: [PATCH] add some small changes --- com/Utils/Echo.lua | 2 +- internal/server/sv1/handle.go | 2 -- main.go | 1 + 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/com/Utils/Echo.lua b/com/Utils/Echo.lua index 9761464..1aa98a4 100644 --- a/com/Utils/Echo.lua +++ b/com/Utils/Echo.lua @@ -1,4 +1,4 @@ -function validate() +local function validate() if not In.Params.msg or In.Params.msg == "" then Out.Error = { message = "there must be a msg parameter" diff --git a/internal/server/sv1/handle.go b/internal/server/sv1/handle.go index 1be104f..af5b384 100644 --- a/internal/server/sv1/handle.go +++ b/internal/server/sv1/handle.go @@ -97,8 +97,6 @@ func (h *HandlerV1) HandleLUA(path string, req *rpc.RPCRequest) *rpc.RPCResponse return 0 })) - registerDatabaseType(L) - L.SetGlobal("Log", logTable) prep := filepath.Join(h.x.Config.Conf.ComDir, "_prepare.lua") diff --git a/main.go b/main.go index 09ec169..bd37215 100644 --- a/main.go +++ b/main.go @@ -2,6 +2,7 @@ package main import ( "github.com/akyaiy/GoSally-mvp/cmd" + _ "modernc.org/sqlite" ) func main() {