Fixing missing space in DB.clearUnauthorisedAppData
Missing space was preventing deletes from UnAuthorisedApps which has been fixed in this update.
This commit is contained in:
parent
76e35cf1bb
commit
b08045753d
@ -530,7 +530,7 @@ DB.clearAuthorisedAppData = function (snID, app, adminID, subAdmins, timestamp)
|
||||
DB.clearUnauthorisedAppData = function (snID, authorisedAppList, timestamp) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let statement = "DELETE FROM _" + snID +
|
||||
" WHERE " + H_struct.TIME + " < ? AND" + //data before deleteDelay (ie, 7 days ago)
|
||||
" WHERE " + H_struct.TIME + " < ? AND " + //data before deleteDelay (ie, 7 days ago)
|
||||
H_struct.APPLICATION + " NOT IN (?)" //app not authorised
|
||||
|
||||
queryResolve(statement, [timestamp, authorisedAppList])
|
||||
@ -544,4 +544,4 @@ module.exports = {
|
||||
query: queryResolve,
|
||||
query_stream: queryStream,
|
||||
DB
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user