@xuda.io/account_module 1.2.1344 → 1.2.1345

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.
Files changed (2) hide show
  1. package/index.mjs +4 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2784,6 +2784,10 @@ export const update_entity_account_profiles = async function (req, job_id, heade
2784
2784
  const app_id = await get_account_default_project_id(uid);
2785
2785
 
2786
2786
  try {
2787
+ if (!account_profiles.length) {
2788
+ throw new Error('account_profiles cnnot be empty');
2789
+ }
2790
+
2787
2791
  let doc = await db_module.get_app_couch_doc_native(app_id, _id);
2788
2792
 
2789
2793
  switch (doc.docType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1344",
3
+ "version": "1.2.1345",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {