@xuda.io/ai_module 1.1.4396 → 1.1.4398
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 +5 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5667,11 +5667,15 @@ export const create_avatar = async function (req, job_id, headers) {
|
|
|
5667
5667
|
throw new Error('invalid docType value');
|
|
5668
5668
|
}
|
|
5669
5669
|
|
|
5670
|
+
if (!['personal', 'business'].includes(account_type)) {
|
|
5671
|
+
throw new Error('invalid account_type value');
|
|
5672
|
+
}
|
|
5673
|
+
|
|
5670
5674
|
if (!url || url.substr(0, 8) !== 'https://') {
|
|
5671
5675
|
throw new Error('invalid url');
|
|
5672
5676
|
}
|
|
5673
5677
|
|
|
5674
|
-
const account_profile_info = await get_active_account_profile_info(uid);
|
|
5678
|
+
const account_profile_info = await account_module.get_active_account_profile_info(uid);
|
|
5675
5679
|
|
|
5676
5680
|
const account_obj = await db_module.get_couch_doc_native('xuda_accounts', uid);
|
|
5677
5681
|
const account_info = account_obj.account_info;
|