addie-js 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addie.js +3 -3
- package/package.json +1 -1
package/addie.js
CHANGED
|
@@ -58,7 +58,7 @@ const addie = {
|
|
|
58
58
|
const signature = await sessionless.sign(message);
|
|
59
59
|
|
|
60
60
|
const res = await get(`${addie.baseURL}user/${uuid}?signature=${signature}×tamp=${timestamp}`);
|
|
61
|
-
const user = res.json();
|
|
61
|
+
const user = await res.json();
|
|
62
62
|
|
|
63
63
|
return user;
|
|
64
64
|
},
|
|
@@ -81,7 +81,7 @@ const addie = {
|
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
const url = `${addie.baseURL}user/${uuid}/processor/${processor}/intent`;
|
|
84
|
-
const res = post(url, payload); // Start here
|
|
84
|
+
const res = await post(url, payload); // Start here
|
|
85
85
|
const intent = await res.json();
|
|
86
86
|
|
|
87
87
|
return intent;
|
|
@@ -100,7 +100,7 @@ const addie = {
|
|
|
100
100
|
};
|
|
101
101
|
|
|
102
102
|
const url = `${addie.baseURL}user/${uuid}/processor/${processor}/intent-without-splits`;
|
|
103
|
-
const res = post(url, payload); // Start here
|
|
103
|
+
const res = await post(url, payload); // Start here
|
|
104
104
|
const intent = await res.json();
|
|
105
105
|
|
|
106
106
|
return intent;
|