@unchainedshop/core-warehousing 4.8.25 → 4.8.27
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.
|
@@ -37,7 +37,7 @@ export const buildTokenFindSelector = ({ queryString, walletAddressExists, ...re
|
|
|
37
37
|
export const configureWarehousingModule = async ({ db }) => {
|
|
38
38
|
registerEvents(WAREHOUSING_PROVIDER_EVENTS);
|
|
39
39
|
const WarehousingProviders = await WarehousingProvidersCollection(db);
|
|
40
|
-
const allProviders = memoizeWithTTL(async () => WarehousingProviders.find({ deleted: null }, { sort: { created: 1 } }).toArray(), { ttl: process.env.NODE_ENV === 'production' ? 60000 : 1 });
|
|
40
|
+
const allProviders = memoizeWithTTL(async () => WarehousingProviders.find({ deleted: null }, { sort: { created: 1, _id: 1 } }).toArray(), { ttl: process.env.NODE_ENV === 'production' ? 60000 : 1 });
|
|
41
41
|
const TokenSurrogates = await TokenSurrogateCollection(db);
|
|
42
42
|
return {
|
|
43
43
|
count: async (query = {}) => {
|
|
@@ -77,7 +77,7 @@ export const configureWarehousingModule = async ({ db }) => {
|
|
|
77
77
|
const userTokens = await TokenSurrogates.find(selector, options).toArray();
|
|
78
78
|
return userTokens;
|
|
79
79
|
},
|
|
80
|
-
findProviders: async (query = {}, options = { sort: { created: 1 } }) => {
|
|
80
|
+
findProviders: async (query = {}, options = { sort: { created: 1, _id: 1 } }) => {
|
|
81
81
|
const providers = WarehousingProviders.find(buildFindSelector(query), options);
|
|
82
82
|
return providers.toArray();
|
|
83
83
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unchainedshop/core-warehousing",
|
|
3
3
|
"description": "Inventory and stock management module for the Unchained Engine",
|
|
4
|
-
"version": "4.8.
|
|
4
|
+
"version": "4.8.27",
|
|
5
5
|
"main": "lib/warehousing-index.js",
|
|
6
6
|
"types": "lib/warehousing-index.d.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/unchainedshop/unchained#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@unchainedshop/events": "^4.8.
|
|
39
|
-
"@unchainedshop/mongodb": "^4.8.
|
|
40
|
-
"@unchainedshop/utils": "^4.8.
|
|
38
|
+
"@unchainedshop/events": "^4.8.27",
|
|
39
|
+
"@unchainedshop/mongodb": "^4.8.27",
|
|
40
|
+
"@unchainedshop/utils": "^4.8.27"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "^26.2.0",
|