@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/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", direction: "desc" }],
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", direction: "asc" }],
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", direction: "asc" }],
2830
+ sort: [{ field: "created_at", order: "asc" }],
2831
2831
  limit: 500,
2832
2832
  context: SYSTEM_CTX8
2833
2833
  });