@formio/appserver 2.12.0-rc.3 → 2.12.0-rc.5
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.
|
@@ -427,7 +427,16 @@ class Database {
|
|
|
427
427
|
let skip = 0, limit = 10;
|
|
428
428
|
limit = parseInt(urlQuery.limit) || 10;
|
|
429
429
|
skip = parseInt(urlQuery.skip) || 0;
|
|
430
|
-
|
|
430
|
+
let sort = { created: -1 };
|
|
431
|
+
if (urlQuery.sort) {
|
|
432
|
+
sort = {};
|
|
433
|
+
const sortParts = urlQuery.sort.split(',');
|
|
434
|
+
sortParts.forEach((part) => {
|
|
435
|
+
const desc = part.charAt(0) === '-';
|
|
436
|
+
const field = desc ? part.substring(1) : part;
|
|
437
|
+
sort[field] = desc ? -1 : 1;
|
|
438
|
+
});
|
|
439
|
+
}
|
|
431
440
|
const includeDeleted = urlQuery.includeDeleted || false;
|
|
432
441
|
let project = {};
|
|
433
442
|
if (urlQuery.select) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formio/appserver",
|
|
3
|
-
"version": "2.12.0-rc.
|
|
3
|
+
"version": "2.12.0-rc.5",
|
|
4
4
|
"description": "A highly performant and extensible Application Server for Form.io Multi-Tenant Deployments.",
|
|
5
5
|
"main": "lib/server.js",
|
|
6
6
|
"types": "lib/server.d.ts",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
],
|
|
34
34
|
"homepage": "https://github.com/formio/appserver#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@formio/appserver-core": "^2.12.0-rc.
|
|
36
|
+
"@formio/appserver-core": "^2.12.0-rc.4",
|
|
37
37
|
"@formio/core": "2.5.1-dev.291.6557e4e",
|
|
38
38
|
"async": "^3.2.6",
|
|
39
39
|
"bcryptjs": "^3.0.3",
|
|
40
40
|
"debug": "^4.4.3",
|
|
41
|
-
"dotenv": "^17.
|
|
41
|
+
"dotenv": "^17.3.1",
|
|
42
42
|
"express": "^5.2.1",
|
|
43
43
|
"jsonwebtoken": "^9.0.3",
|
|
44
44
|
"lodash": "^4.17.23",
|