change forgotten database calls

This commit is contained in:
Jonathan Jenne
2022-01-17 12:08:59 +01:00
parent 156ffcebbf
commit 6cdfd32f9e
4 changed files with 21 additions and 31 deletions

View File

@@ -45,14 +45,14 @@ Public Class ClassAllgemeineFunktionen
Else
If INACTIVITYRecognized = True Then
oSql = $"UPDATE TBDD_USER_LOGIN_OUT SET COMMENT = 'Inactivity Detected',LOGOUT = GETDATE() WHERE USER_ID = {USER_ID} AND UPPER(MODULE) = UPPER('Process-Manager') AND LOGOUT IS NULL"
If Database_ECM.ExecuteNonQuery(oSql, "Inactivity insert") = True Then
If Database.ExecuteNonQueryECM(oSql) = True Then
End If
End If
oSql = $"DELETE FROM TBDD_USER_MODULE_LOG_IN WHERE USER_ID = {USER_ID} AND UPPER(MODULE) = UPPER('Process-Manager')"
End If
If Database_ECM.ExecuteNonQuery(oSql) = True Then
If Database.ExecuteNonQueryECM(oSql) = True Then
LOGGER.Debug($"{LoginorOut} of User successfully!")
Return True
Else