|
@@ -7,7 +7,6 @@ function SessionModel(sessionInfos) {
|
|
|
this.ipAddress = sessionInfos?.ipAddress || "";
|
|
this.ipAddress = sessionInfos?.ipAddress || "";
|
|
|
this.loginDateTime = new Date(sessionInfos?.loginDateTime || 0);
|
|
this.loginDateTime = new Date(sessionInfos?.loginDateTime || 0);
|
|
|
this.username = sessionInfos?.username || "";
|
|
this.username = sessionInfos?.username || "";
|
|
|
- this.mail = sessionInfos?.mail || "";
|
|
|
|
|
this.sessionId = sessionInfos?.sessionId || "";
|
|
this.sessionId = sessionInfos?.sessionId || "";
|
|
|
this.instance = sessionInfos?.instance || "";
|
|
this.instance = sessionInfos?.instance || "";
|
|
|
}
|
|
}
|
|
@@ -26,7 +25,6 @@ SessionModel.prototype.createOrUpdateBase = async function(dbHelper) {
|
|
|
remoteAddress STRING NOT NULL,
|
|
remoteAddress STRING NOT NULL,
|
|
|
loginDateTime TIMESTAMP NOT NULL,
|
|
loginDateTime TIMESTAMP NOT NULL,
|
|
|
username STRING NOT NULL,
|
|
username STRING NOT NULL,
|
|
|
- mail STRING NOT NULL,
|
|
|
|
|
PRIMARY KEY (sessionId, instance))`);
|
|
PRIMARY KEY (sessionId, instance))`);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -37,7 +35,6 @@ SessionModel.prototype.describe = function() {
|
|
|
"remoteAddress": this.ipAddress,
|
|
"remoteAddress": this.ipAddress,
|
|
|
"loginDateTime": this.loginDateTime.getTime(),
|
|
"loginDateTime": this.loginDateTime.getTime(),
|
|
|
"username": this.username,
|
|
"username": this.username,
|
|
|
- "mail": this.mail,
|
|
|
|
|
"instance": this.instance
|
|
"instance": this.instance
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
@@ -50,7 +47,6 @@ SessionModel.prototype.fromDb = function(dbObj) {
|
|
|
this.ipAddress = dbObj["remoteAddress"];
|
|
this.ipAddress = dbObj["remoteAddress"];
|
|
|
this.loginDateTime.setTime(dbObj["loginDateTime"]);
|
|
this.loginDateTime.setTime(dbObj["loginDateTime"]);
|
|
|
this.username = dbObj["username"];
|
|
this.username = dbObj["username"];
|
|
|
- this.mail = dbObj["mail"];
|
|
|
|
|
this.instance = dbObj["instance"];
|
|
this.instance = dbObj["instance"];
|
|
|
}
|
|
}
|
|
|
|
|
|