wingbot-mongodb 4.2.12 → 4.2.13
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/.nyc_output/499f7b59-64e0-479d-a107-7bf801d6379b.json +1 -0
- package/.nyc_output/processinfo/499f7b59-64e0-479d-a107-7bf801d6379b.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/package.json +1 -1
- package/src/StateStorage.js +2 -8
- package/.nyc_output/b70eb1fa-a2df-4138-85a5-8f4e731c1f10.json +0 -1
- package/.nyc_output/processinfo/b70eb1fa-a2df-4138-85a5-8f4e731c1f10.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":4156653,"argv":["/nix/store/h4apbnz8p5fmjwcmzlaxcjm5vr70d97x-nodejs-slim-24.13.0/bin/node","/home/lika85456/workspace/wingbot/wingbot-mongodb/node_modules/.bin/mocha","./test"],"execArgv":[],"cwd":"/home/lika85456/workspace/wingbot/wingbot-mongodb","time":1775126022773,"ppid":4156624,"coverageFilename":"/home/lika85456/workspace/wingbot/wingbot-mongodb/.nyc_output/499f7b59-64e0-479d-a107-7bf801d6379b.json","externalId":"","uuid":"499f7b59-64e0-479d-a107-7bf801d6379b","files":["/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BaseStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/defaultLogger.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/getNestedObjects.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/AttachmentCache.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/AuditLogStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BotConfigStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BotTokenStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/tokenFactory.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/ChatLogStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/NotificationsStorage.js","/home/lika85456/workspace/wingbot/wingbot-mongodb/src/StateStorage.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"
|
|
1
|
+
{"processes":{"499f7b59-64e0-479d-a107-7bf801d6379b":{"parent":null,"children":[]}},"files":{"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BaseStorage.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/defaultLogger.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/getNestedObjects.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/AttachmentCache.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/AuditLogStorage.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BotConfigStorage.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/BotTokenStorage.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/tokenFactory.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/ChatLogStorage.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/NotificationsStorage.js":["499f7b59-64e0-479d-a107-7bf801d6379b"],"/home/lika85456/workspace/wingbot/wingbot-mongodb/src/StateStorage.js":["499f7b59-64e0-479d-a107-7bf801d6379b"]},"externalIds":{}}
|
package/package.json
CHANGED
package/src/StateStorage.js
CHANGED
|
@@ -248,14 +248,8 @@ class StateStorage extends BaseStorage {
|
|
|
248
248
|
cursor = c
|
|
249
249
|
.find(useCondition)
|
|
250
250
|
.limit(limit + 1)
|
|
251
|
-
.skip(skip)
|
|
252
|
-
|
|
253
|
-
cursor
|
|
254
|
-
.project({ score: { $meta: 'textScore' } })
|
|
255
|
-
.sort({ score: { $meta: 'textScore' }, lastInteraction: -1 });
|
|
256
|
-
} else {
|
|
257
|
-
cursor.sort({ lastInteraction: -1 });
|
|
258
|
-
}
|
|
251
|
+
.skip(skip)
|
|
252
|
+
.sort({ lastInteraction: -1 });
|
|
259
253
|
} else {
|
|
260
254
|
cursor = c
|
|
261
255
|
.find(useCondition)
|