@xuda.io/ai_module 1.1.4078 → 1.1.4079
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 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -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);
|