@bobbykim/manguito-cms-api 0.9.3 → 0.9.4

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createGraphQLHandler
3
- } from "../chunk-IMDC3NGM.mjs";
4
- import "../chunk-IFE2L4VM.mjs";
3
+ } from "../chunk-DHOVO42E.mjs";
4
+ import "../chunk-EFTMAG7N.mjs";
5
5
  export {
6
6
  createGraphQLHandler
7
7
  };
@@ -0,0 +1,8 @@
1
+ import {
2
+ createGraphQLHandler
3
+ } from "./chunk-DHOVO42E.mjs";
4
+ import "./chunk-EFTMAG7N.mjs";
5
+ export {
6
+ createGraphQLHandler
7
+ };
8
+ //# sourceMappingURL=handler-5OTVPIAF.mjs.map
package/dist/index.js CHANGED
@@ -429,7 +429,7 @@ async function persistJunctionField(db, itemId, junction, relatedIds) {
429
429
  import_drizzle_orm3.sql`, `
430
430
  );
431
431
  await db.execute(
432
- junction.order_column ? import_drizzle_orm3.sql`INSERT INTO ${tbl} (${left}, ${right}, "order") VALUES ${rows}` : import_drizzle_orm3.sql`INSERT INTO ${tbl} (${left}, ${right}) VALUES ${rows}`
432
+ junction.order_column ? import_drizzle_orm3.sql`INSERT INTO ${tbl} (${left}, ${right}, "order") VALUES ${rows} ON CONFLICT DO NOTHING` : import_drizzle_orm3.sql`INSERT INTO ${tbl} (${left}, ${right}) VALUES ${rows} ON CONFLICT DO NOTHING`
433
433
  );
434
434
  }
435
435
  function junctionOrderBy(junction) {
@@ -4384,7 +4384,7 @@ function registerUserRoutes(app, db, requirePermission, requireHierarchy) {
4384
4384
  var import_drizzle_orm8 = require("drizzle-orm");
4385
4385
  var API_VERSION = (() => {
4386
4386
  try {
4387
- return "0.9.3";
4387
+ return "0.9.4";
4388
4388
  } catch {
4389
4389
  return "0.0.0";
4390
4390
  }