Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
fix: fix support log sending
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanctech committed Jan 24, 2021
1 parent 902909f commit 0974811
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sonorancad/core/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,15 @@ function performApiRequest(postData, type, cb)
if ApiEndpoints[type] ~= nil then
endpoint = ApiEndpoints[type]
end
local url = ""
if endpoint == "support" then
apiUrl = "https://api.sonoransoftware.com/"
url = apiUrl..tostring(endpoint).."/"
else
apiUrl = getApiUrl()
url = apiUrl..tostring(endpoint).."/"..tostring(type:lower())
end
assert(type ~= nil, "No type specified, invalid request.")
local url = apiUrl..tostring(endpoint).."/"..tostring(type:lower())
if Config.critError then
return
elseif not Config.apiSendEnabled then
Expand Down
2 changes: 1 addition & 1 deletion sonorancad/fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ games {'gta5'}

author 'Sonoran CAD'
description 'Sonoran CAD FiveM Integration'
version '2.4.0'
version '2.3.3'

server_scripts {
'core/http.js'
Expand Down

0 comments on commit 0974811

Please sign in to comment.