@pioneer-platform/default-mongo 8.1.17 → 8.1.19
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/__tests__/test-module.js +7 -7
- package/package.json +2 -2
package/__tests__/test-module.js
CHANGED
@@ -15,7 +15,7 @@ let connection = require('../index')
|
|
15
15
|
|
16
16
|
//let usersDB = connection.get('users')
|
17
17
|
let txsDB = connection.get('transactions')
|
18
|
-
let
|
18
|
+
let attempts = connection.get('attempts')
|
19
19
|
let usersDB = connection.get('users')
|
20
20
|
let pubkeysDB = connection.get('pubkeys')
|
21
21
|
|
@@ -37,8 +37,8 @@ read
|
|
37
37
|
let run_test = async function(){
|
38
38
|
try{
|
39
39
|
console.log("test")
|
40
|
-
|
41
|
-
|
40
|
+
let resp = await attempts.findOne()
|
41
|
+
console.log("resp: ",resp)
|
42
42
|
|
43
43
|
// let resp = await txsDB.findOne()
|
44
44
|
// console.log(resp)
|
@@ -52,17 +52,17 @@ let run_test = async function(){
|
|
52
52
|
// console.log(respPush)
|
53
53
|
|
54
54
|
|
55
|
-
// let
|
56
|
-
// let
|
55
|
+
// let context = '0x33b35c665496ba8e71b22373843376740401f106.wallet.json'
|
56
|
+
// let context2 = '0xc3affff54122658b89c31183cec4f15514f34624.wallet.json'
|
57
57
|
//
|
58
58
|
// //get pubkeys by user
|
59
|
-
// let resp = await pubkeysDB.find({tags:{$all:[
|
59
|
+
// let resp = await pubkeysDB.find({tags:{$all:[context]}})
|
60
60
|
// for(let i = 0; i < resp.length; i++){
|
61
61
|
// let pubkey = resp[i]
|
62
62
|
// console.log("pubkey: ",pubkey.network)
|
63
63
|
// }
|
64
64
|
|
65
|
-
// let resp2 = await pubkeysDB.find({tags:{$all:[
|
65
|
+
// let resp2 = await pubkeysDB.find({tags:{$all:[context2]}})
|
66
66
|
// console.log(resp2.length)
|
67
67
|
// for(let i = 0; i < resp2.length; i++){
|
68
68
|
// let pubkey = resp2[i]
|
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pioneer-platform/default-mongo",
|
3
|
-
"version": "8.1.
|
3
|
+
"version": "8.1.19",
|
4
4
|
"dependencies": {
|
5
5
|
"dotenv": "^8.0.0",
|
6
6
|
"monk": "latest"
|
7
7
|
},
|
8
|
-
"gitHead": "
|
8
|
+
"gitHead": "936adb19ab1d1416bde40b0b87dc1f088b19f753"
|
9
9
|
}
|