@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.
Files changed (2) hide show
  1. package/index.mjs +3 -1
  2. 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
- await update_profile_avatar_status(uid, 1);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4078",
3
+ "version": "1.1.4079",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",