@xuda.io/ai_module 1.1.4084 → 1.1.4087

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 +7 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -5518,7 +5518,12 @@ export const create_account_profile_avatar = async function (req, job_id, header
5518
5518
  req.account_obj = await db_module.get_couch_doc_native('xuda_accounts', uid);
5519
5519
 
5520
5520
  return await create_profile_avatar(req, job_id, headers);
5521
- } catch (error) {}
5521
+ } catch (err) {
5522
+ return {
5523
+ code: -25,
5524
+ data: err.message,
5525
+ };
5526
+ }
5522
5527
  };
5523
5528
 
5524
5529
  export const create_profile_avatar = async function (req, job_id, headers) {
@@ -5617,7 +5622,7 @@ export const create_profile_avatar = async function (req, job_id, headers) {
5617
5622
  const res = JSON5.parse(ret.data);
5618
5623
  return res?.is_real_person_in_picture;
5619
5624
  };
5620
- debugger;
5625
+
5621
5626
  // const drive_module = await import(`${module_path}/drive_module/index.mjs`);
5622
5627
  const { url, uid, account_obj, prompt, is_profile_avatar } = req;
5623
5628
  if (!is_profile_avatar) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4084",
3
+ "version": "1.1.4087",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",