@objectstack/plugin-sharing 9.2.0 → 9.3.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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +20 -0
- package/dist/index.d.mts +102 -3
- package/dist/index.d.ts +102 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/share-link-routes.ts +1 -1
- package/src/sharing-rule-service.ts +1 -1
- package/src/sharing-service.test.ts +25 -1
- package/src/sharing-service.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1825,7 +1825,7 @@ var SharingService = class {
|
|
|
1825
1825
|
async listShares(object, recordId, _context) {
|
|
1826
1826
|
const rows = await this.engine.find("sys_record_share", {
|
|
1827
1827
|
filter: { object_name: object, record_id: recordId },
|
|
1828
|
-
orderBy: [{ field: "created_at",
|
|
1828
|
+
orderBy: [{ field: "created_at", order: "desc" }],
|
|
1829
1829
|
limit: 500,
|
|
1830
1830
|
context: SYSTEM_CTX
|
|
1831
1831
|
});
|
|
@@ -2165,7 +2165,7 @@ var SharingRuleService = class {
|
|
|
2165
2165
|
if (orgId) where.organization_id = orgId;
|
|
2166
2166
|
const rows = await this.engine.find("sys_sharing_rule", {
|
|
2167
2167
|
filter: where,
|
|
2168
|
-
orderBy: [{ field: "name",
|
|
2168
|
+
orderBy: [{ field: "name", order: "asc" }],
|
|
2169
2169
|
limit: 1e3,
|
|
2170
2170
|
context: SYSTEM_CTX4
|
|
2171
2171
|
});
|
|
@@ -2827,7 +2827,7 @@ function registerShareLinkRoutes(http, service, engine, opts = {}) {
|
|
|
2827
2827
|
const SYSTEM_CTX8 = { isSystem: true, roles: [], permissions: [] };
|
|
2828
2828
|
const rows = await engine.find("ai_messages", {
|
|
2829
2829
|
where: { conversation_id: resolved.link.record_id },
|
|
2830
|
-
sort: [{ field: "created_at",
|
|
2830
|
+
sort: [{ field: "created_at", order: "asc" }],
|
|
2831
2831
|
limit: 500,
|
|
2832
2832
|
context: SYSTEM_CTX8
|
|
2833
2833
|
});
|