@xuda.io/ai_module 1.1.4620 → 1.1.4622

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 +2 -2
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -1802,7 +1802,7 @@ export const get_ai_chats = async function (req, job_id, headers) {
1802
1802
  },
1803
1803
  limit: limit || 9999,
1804
1804
  skip: skip || 0,
1805
- sort: [{ ts: reference_id ? 'asc' : 'desc' }],
1805
+ // sort: [{ ts: reference_id ? 'asc' : 'desc' }],
1806
1806
  };
1807
1807
 
1808
1808
  if (reference_id) {
@@ -5978,7 +5978,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
5978
5978
  };
5979
5979
 
5980
5980
  let drive_ret = await drive_module.upload_drive_file_user({ uid, path: '/Profile Images' }, job_id, headers, file_obj);
5981
- drive_ret.avatar_source = avatar_source;
5981
+ drive_ret.data.avatar_source = avatar_source;
5982
5982
 
5983
5983
  return drive_ret;
5984
5984
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/ai_module",
3
- "version": "1.1.4620",
3
+ "version": "1.1.4622",
4
4
  "description": "Xuda AI Module",
5
5
  "main": "index.mjs",
6
6
  "type": "module",