Explorar el Código

[fix] socketio request.query

version-14
Anand Doshi hace 9 años
padre
commit
c7e551809b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      socketio.js

+ 2
- 2
socketio.js Ver fichero

@@ -36,7 +36,7 @@ io.on('connection', function(socket){
// console.log("firing get_user_info");
request.get(get_url(socket, '/api/method/frappe.async.get_user_info'))
.type('form')
.send({
.query({
sid: sid
})
.end(function(err, res) {
@@ -204,7 +204,7 @@ function can_subscribe_doc(args) {
if(!args) return;
request.get(get_url(args.socket, '/api/method/frappe.async.can_subscribe_doc'))
.type('form')
.send({
.query({
sid: args.sid,
doctype: args.doctype,
docname: args.docname


Cargando…
Cancelar
Guardar