fix: use POST call for user creation in ACP

- Not entirely sure about error handling yet, more research needed
- Also added socket method deprecation utility method
This commit is contained in:
Julian Lam
2020-03-27 22:52:46 -04:00
parent bba2a4638c
commit 58043e07ba
4 changed files with 17 additions and 5 deletions

View File

@@ -258,3 +258,10 @@ Sockets.reqFromSocket = function (socket, payload, event) {
headers: headers,
};
};
Sockets.warnDeprecated = (socket, replacement) => {
socket.emit('event:deprecated_call', {
eventName: socket.previousEvents[socket.previousEvents.length - 1],
replacement: replacement,
});
};