@xuda.io/ai_module 1.1.4073 → 1.1.4074
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 +4 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5609,9 +5609,10 @@ export const convert_profile_image_to_avatar = async function (req, job_id, head
|
|
|
5609
5609
|
};
|
|
5610
5610
|
|
|
5611
5611
|
// const drive_module = await import(`${module_path}/drive_module/index.mjs`);
|
|
5612
|
-
const { url, uid, account_obj, prompt } = req;
|
|
5613
|
-
|
|
5614
|
-
|
|
5612
|
+
const { url, uid, account_obj, prompt, profile_id } = req;
|
|
5613
|
+
if (!profile_id) {
|
|
5614
|
+
await update_profile_avatar_status(account_obj._id, 2);
|
|
5615
|
+
}
|
|
5615
5616
|
try {
|
|
5616
5617
|
if (!url) {
|
|
5617
5618
|
throw new Error('No URL provided in request');
|