@dbos-inc/pgnotifier-receiver 3.6.3-preview → 3.6.5-preview

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/pgnotifier-receiver",
3
- "version": "3.6.3-preview",
3
+ "version": "3.6.5-preview",
4
4
  "description": "DBOS DB Trigger receiver and helper functions",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -271,12 +271,13 @@ describe('test-db-trigger-polling', () => {
271
271
  expect(DBOSTriggerTestClassSN.snRecordMap.get(999)?.status).toBeUndefined();
272
272
  expect(DBOSTriggerTestClassSN.tsRecordMap.get(999)?.status).toBeUndefined();
273
273
 
274
- const wfs = await DBOS.getWorkflows({
274
+ const wfs = await DBOS.listWorkflows({
275
275
  workflowName: 'pollWFBySeq',
276
276
  });
277
277
 
278
278
  let foundQ = false;
279
- for (const wfid of wfs.workflowUUIDs) {
279
+ for (const wf of wfs) {
280
+ const wfid = wf.workflowID;
280
281
  const stat = await DBOS.retrieveWorkflow(wfid).getStatus();
281
282
  if (stat?.queueName === q.name) foundQ = true;
282
283
  }