Skip to content

Commit 2f796e7

Browse files
committed
refactor(config/server.webhook); load data.json
1 parent ade37d9 commit 2f796e7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

config/server/webhook.lua

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
local active <const> = true
2-
local loadjson <const> = active and require 'imports.json.server'.load
2+
if not active then return false end
33

4-
return active and loadjson('data/server/webhook')
4+
local loadjson <const> = active and require 'imports.json.server'.load
5+
local data <const> = loadjson('data.server.webhook')
6+
--print(json.encode(data, { indent = true, sort_keys = true }))
7+
return active and data
58

69
--[[
710
return active and {

0 commit comments

Comments
 (0)