feat: handle emailConfirmed SSE

This commit is contained in:
thecodrr
2020-12-23 11:28:38 +05:00
parent d371122940
commit b87ba6259a
2 changed files with 8 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ post.json = function (url, data, token) {
};
function transformer(data, json) {
if (!data) return;
if (json) return JSON.stringify(data);
else {
return Object.entries(data)