@xuda.io/ai_module 1.1.4078 → 1.1.4080
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 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5607,7 +5607,7 @@ export const create_profile_avatar = async function (req, job_id, headers) {
|
|
|
5607
5607
|
const res = JSON5.parse(ret.data);
|
|
5608
5608
|
return res?.is_real_person_in_picture;
|
|
5609
5609
|
};
|
|
5610
|
-
|
|
5610
|
+
debugger;
|
|
5611
5611
|
// const drive_module = await import(`${module_path}/drive_module/index.mjs`);
|
|
5612
5612
|
const { url, uid, account_obj, prompt, is_profile_avatar } = req;
|
|
5613
5613
|
if (!is_profile_avatar) {
|
|
@@ -5831,7 +5831,9 @@ export const create_profile_avatar = async function (req, job_id, headers) {
|
|
|
5831
5831
|
throw new Error(drive_ret.data);
|
|
5832
5832
|
}
|
|
5833
5833
|
} catch (error) {
|
|
5834
|
-
|
|
5834
|
+
if (!is_profile_avatar) {
|
|
5835
|
+
await update_profile_avatar_status(uid, 1);
|
|
5836
|
+
}
|
|
5835
5837
|
console.error('Error:', error.message);
|
|
5836
5838
|
if (error.response?.data) {
|
|
5837
5839
|
console.error('OpenAI API response:', error.response.data);
|