@xuda.io/account_module 1.2.274 → 1.2.275
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 +2 -5
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -121,7 +121,7 @@ export const update_account_info = async function (req, job_id, headers) {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
if (account_obj.account_info?.profile_picture) {
|
|
124
|
-
await removeBg({ url: account_obj.account_info?.profile_picture }, job_id, headers);
|
|
124
|
+
await removeBg({ url: account_obj.account_info?.profile_picture, uid }, job_id, headers);
|
|
125
125
|
} else {
|
|
126
126
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
127
127
|
const profile_avatar_ret = ai_module.update_thumbnail('account', account_obj, account_obj.account_project_id, uid, job_id, headers, 'xuda_accounts');
|
|
@@ -1620,10 +1620,7 @@ const removeBg = async function (req, job_id, headers) {
|
|
|
1620
1620
|
// 1. Load your drive module
|
|
1621
1621
|
const drive_module = await import(`${module_path}/drive_module/index.mjs`);
|
|
1622
1622
|
|
|
1623
|
-
|
|
1624
|
-
const uid = req.user?.uid || req.uid || 'unknown_user';
|
|
1625
|
-
|
|
1626
|
-
const { url } = req;
|
|
1623
|
+
const { url, uid } = req;
|
|
1627
1624
|
|
|
1628
1625
|
try {
|
|
1629
1626
|
if (!url) {
|