delete user data
@@ -107,7 +107,7 @@ public void removeApplicationHistory() {
@Override
public void removeUserAccountApplicationHistory(String userId) {
final JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
- jdbcTemplate.update("delete from application_action_event WHERE user_id = ?", new Object[] {userId });
+ jdbcTemplate.update("delete from application_action_event WHERE EVENTS_APPLICATION_SESSION_H_0 IN (SELECT hjid FROM application_session WHERE user_id = ?)", new Object[] {userId });
jdbcTemplate.update("delete from application_session WHERE user_id = ?", new Object[] {userId });
}
