@xuda.io/account_module 1.2.1344 → 1.2.1346
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/index.mjs +4 -0
- 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 cannot 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) {
|