|
@ -21,8 +21,8 @@ let imRepo = require("./database/im.db.js");
|
|
|
*/
|
|
|
exports.save = function(to, contentType, title, content, message, has_pushed, delay, handler) {
|
|
|
imRepo.execQuery({
|
|
|
"sql": "INSERT INTO push_notify (to_uid, type, title, content, data, delay, has_pushed) VALUES (?,?,?,?,?,?)",
|
|
|
"args": [to, contentType, title, content, message, has_pushed],
|
|
|
"sql": "INSERT INTO push_notify (to_uid, type, title, content, data, delay, has_pushed) VALUES (?,?,?,?,?,?,?)",
|
|
|
"args": [to, contentType, title, content, message,delay, has_pushed],
|
|
|
"handler": handler
|
|
|
});
|
|
|
};
|