godprotocol 2.3.12 → 2.3.14
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/package.json
CHANGED
|
@@ -18,7 +18,7 @@ class DB {
|
|
|
18
18
|
read_cache = async (query, category) => {
|
|
19
19
|
let folder_name = `$CACHE-${category}`;
|
|
20
20
|
|
|
21
|
-
let Cache = await this.
|
|
21
|
+
let Cache = await this.router.get_service("cache");
|
|
22
22
|
let res = await Cache.call("get", {
|
|
23
23
|
key: `${folder_name}:${JSON.stringify(query)}`,
|
|
24
24
|
});
|
|
@@ -47,7 +47,7 @@ class DB {
|
|
|
47
47
|
ttlMs = 7 * 24 * 60 * 60 * 1000,
|
|
48
48
|
) => {
|
|
49
49
|
let folder_name = `$CACHE-${category}`;
|
|
50
|
-
let Cache = await this.
|
|
50
|
+
let Cache = await this.router.get_service("cache");
|
|
51
51
|
|
|
52
52
|
let res = await Cache.call("get", {
|
|
53
53
|
key: folder_name,
|
|
@@ -218,8 +218,6 @@ class Route_table extends Headers {
|
|
|
218
218
|
if (config.schema) {
|
|
219
219
|
let resp = await this.validate(config.schema, payload);
|
|
220
220
|
|
|
221
|
-
// debug("Validation result for route", name, ":", resp);
|
|
222
|
-
|
|
223
221
|
if (!resp.ok) {
|
|
224
222
|
if (this.platform_agent) {
|
|
225
223
|
await this.call_agency({
|
|
@@ -242,7 +240,7 @@ class Route_table extends Headers {
|
|
|
242
240
|
endpoint: name,
|
|
243
241
|
args: payload.body,
|
|
244
242
|
response: resp,
|
|
245
|
-
conversation: payload.headers.meta.conversation_id,
|
|
243
|
+
// conversation: payload.headers.meta.conversation_id,
|
|
246
244
|
});
|
|
247
245
|
}
|
|
248
246
|
return result;
|
|
@@ -257,7 +255,7 @@ class Route_table extends Headers {
|
|
|
257
255
|
endpoint: name,
|
|
258
256
|
args: payload.body,
|
|
259
257
|
response,
|
|
260
|
-
conversation: payload.headers.meta.conversation_id,
|
|
258
|
+
// conversation: payload.headers.meta.conversation_id,
|
|
261
259
|
},
|
|
262
260
|
response.agent,
|
|
263
261
|
);
|