@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.
- package/index.mjs +6 -0
- 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
|
|