@xuda.io/account_module 1.2.1812 → 1.2.1814

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 +6 -0
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -2394,6 +2394,12 @@ const set_contact_profile_picture = async function (uid, contact_id, metadata, j
2394
2394
  );
2395
2395
 
2396
2396
  if (file_ret.code < 0) {
2397
+ if (file_ret.data === 'Input file contains unsupported image format') {
2398
+ delete contact_obj.profile_picture;
2399
+ delete contact_obj.profile_picture_obj;
2400
+ const contact_save_ret = await db_module.save_app_couch_doc(account_profile_info.app_id, contact_obj);
2401
+ debugger;
2402
+ }
2397
2403
  throw new Error(file_ret.data);
2398
2404
  }
2399
2405
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/account_module",
3
- "version": "1.2.1812",
3
+ "version": "1.2.1814",
4
4
  "description": "Xuda Account Server Module",
5
5
  "main": "index.mjs",
6
6
  "dependencies": {