@cellaware/utils 3.3.29 → 3.3.31

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.
@@ -125,7 +125,7 @@ export async function cosmosDelete(databaseId, collectionId, partitionKey, query
125
125
  query
126
126
  }).fetchAll();
127
127
  resources.forEach(doc => {
128
- container.item(doc.id, doc.clientId).delete();
128
+ container.item(doc.id, doc[partitionKey]).delete();
129
129
  });
130
130
  return true;
131
131
  }
@@ -1,3 +1,4 @@
1
+ export declare const PRODUCT_PARTITION_KEY = "/productId";
1
2
  /**
2
3
  * Default `partitionKey` is '/clientId'
3
4
  */
@@ -1,6 +1,7 @@
1
1
  import { cosmosDelete, cosmosInsert, cosmosSelect, cosmosUpdate } from "../../azure/cosmos.js";
2
2
  const DATABASE_ID = 'chatwms';
3
3
  const PARTITION_KEY = '/clientId';
4
+ export const PRODUCT_PARTITION_KEY = '/productId';
4
5
  /**
5
6
  * Default `partitionKey` is '/clientId'
6
7
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "3.3.29",
3
+ "version": "3.3.31",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",