|
@ -394,7 +394,7 @@ class Users extends RedisModel {
|
|
|
* @param callback
|
|
|
*/
|
|
|
static updatePatientStatus(userId,online, handler) {
|
|
|
let sql = "update " + DB_TABLES.Patients + " set online=? where id = ?";
|
|
|
let sql = "update " + DB_TABLES.Patients + " set on_line=? where id = ?";
|
|
|
ImDb.execQuery({
|
|
|
"sql": sql,
|
|
|
"args": [online, userId],
|
|
@ -411,7 +411,7 @@ class Users extends RedisModel {
|
|
|
* @param handler
|
|
|
*/
|
|
|
static updateDoctorStatus(userId,online, handler) {
|
|
|
let sql = "update " + DB_TABLES.Doctors + " set online=? where id = ?";
|
|
|
let sql = "update " + DB_TABLES.Doctors + " set on_line=? where id = ?";
|
|
|
ImDb.execQuery({
|
|
|
"sql": sql,
|
|
|
"args": [online, userId],
|