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:
tripathyr 2023-10-09 19:10:54 +05:30 committed by GitHub
parent 76e35cf1bb
commit b08045753d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
};
};