lonnymq 0.0.3 → 0.0.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.
package/dist/index.cjs CHANGED
@@ -241,7 +241,7 @@ var{defineProperty:R,getOwnPropertyNames:X,getOwnPropertyDescriptor:V}=Object,K=
241
241
  FROM ${t(e.schema)}."message"
242
242
  WHERE NOT "is_locked"
243
243
  AND "channel_name" = v_message_dequeue."channel_name"
244
- ORDER BY "dequeue_after" ASC
244
+ ORDER BY "dequeue_after" ASC, "id" ASC
245
245
  LIMIT 1
246
246
  INTO v_message_next_dequeue;
247
247
 
@@ -484,7 +484,8 @@ var{defineProperty:R,getOwnPropertyNames:X,getOwnPropertyDescriptor:V}=Object,K=
484
484
  CREATE INDEX "message_dequeue_ix"
485
485
  ON ${t(e.schema)}."message" (
486
486
  "channel_name",
487
- "dequeue_after" ASC
487
+ "dequeue_after" ASC,
488
+ "id" ASC
488
489
  ) WHERE NOT "is_locked";
489
490
  `,a`
490
491
  CREATE INDEX "message_locked_dequeue_ix"
package/dist/index.js CHANGED
@@ -241,7 +241,7 @@ var s=(e)=>({nodeType:"VALUE",value:e}),n=(e)=>({nodeType:"REF",value:e}),w=(e)=
241
241
  FROM ${n(e.schema)}."message"
242
242
  WHERE NOT "is_locked"
243
243
  AND "channel_name" = v_message_dequeue."channel_name"
244
- ORDER BY "dequeue_after" ASC
244
+ ORDER BY "dequeue_after" ASC, "id" ASC
245
245
  LIMIT 1
246
246
  INTO v_message_next_dequeue;
247
247
 
@@ -484,7 +484,8 @@ var s=(e)=>({nodeType:"VALUE",value:e}),n=(e)=>({nodeType:"REF",value:e}),w=(e)=
484
484
  CREATE INDEX "message_dequeue_ix"
485
485
  ON ${n(e.schema)}."message" (
486
486
  "channel_name",
487
- "dequeue_after" ASC
487
+ "dequeue_after" ASC,
488
+ "id" ASC
488
489
  ) WHERE NOT "is_locked";
489
490
  `,a`
490
491
  CREATE INDEX "message_locked_dequeue_ix"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lonnymq",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {