chore(cache): clear the cache before filling it

Closes https://github.com/FXServer-ESX/fxserver-esx_whitelist/issues/2
This commit is contained in:
Romain Lanz
2017-09-15 09:52:51 +02:00
parent 8b3b0c4bcb
commit f426c0208f
+2
View File
@@ -5,6 +5,8 @@ function loadWhiteList ()
'SELECT * FROM whitelist',
{},
function (identifiers)
Whitelist = {}
for i=1, #identifiers, 1 do
table.insert(WhiteList, tostring(identifiers[i].identifier))
end