@xuda.io/account_module 1.2.274 → 1.2.276
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 +3 -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');
|
|
@@ -1617,13 +1617,11 @@ export const get_user_name = async function (uid) {
|
|
|
1617
1617
|
// };
|
|
1618
1618
|
|
|
1619
1619
|
const removeBg = async function (req, job_id, headers) {
|
|
1620
|
+
debugger;
|
|
1620
1621
|
// 1. Load your drive module
|
|
1621
1622
|
const drive_module = await import(`${module_path}/drive_module/index.mjs`);
|
|
1622
1623
|
|
|
1623
|
-
|
|
1624
|
-
const uid = req.user?.uid || req.uid || 'unknown_user';
|
|
1625
|
-
|
|
1626
|
-
const { url } = req;
|
|
1624
|
+
const { url, uid } = req;
|
|
1627
1625
|
|
|
1628
1626
|
try {
|
|
1629
1627
|
if (!url) {
|