@rpcbase/server 0.112.0 → 0.114.0
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
|
@@ -6,6 +6,8 @@ const queue = require("./index")
|
|
|
6
6
|
|
|
7
7
|
const dispatch_queue = require("./dispatch_queue")
|
|
8
8
|
|
|
9
|
+
console.log("AFTER REQUIRE register_model_emitter")
|
|
10
|
+
|
|
9
11
|
const log = debug("rb:queue:listener")
|
|
10
12
|
|
|
11
13
|
// Listens for mongodb change events,
|
|
@@ -38,6 +40,9 @@ const get_dispatch_change_handler = (model_name) => (change) => {
|
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
const register_model_emitter = (model_name) => {
|
|
43
|
+
console.log("REGGGGGG", model_name)
|
|
44
|
+
|
|
45
|
+
|
|
41
46
|
const model = mongoose.model(model_name)
|
|
42
47
|
|
|
43
48
|
// TODO: implement delete operation fullDocument retrieve,
|
|
@@ -65,8 +70,9 @@ const register_queue_listener = async() => {
|
|
|
65
70
|
|
|
66
71
|
const models = mongoose.modelNames()
|
|
67
72
|
|
|
68
|
-
|
|
73
|
+
console.log("WILL register_model_emitter")
|
|
69
74
|
|
|
75
|
+
models.forEach(register_model_emitter)
|
|
70
76
|
}
|
|
71
77
|
|
|
72
78
|
|