@xuda.io/ai_module 1.1.5337 → 1.1.5338
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5955,7 +5955,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
5955
5955
|
};
|
|
5956
5956
|
|
|
5957
5957
|
export const conversation_actions = async function (req, job_id, headers) {
|
|
5958
|
-
const { conversation_id, item_id, action, uid
|
|
5958
|
+
const { conversation_id, item_id, action, uid } = req;
|
|
5959
5959
|
try {
|
|
5960
5960
|
if (!conversation_id || conversation_id === 'undefined') {
|
|
5961
5961
|
throw new Error('conversation_id is missing or invalid:' + conversation_id);
|
|
@@ -5964,7 +5964,7 @@ export const conversation_actions = async function (req, job_id, headers) {
|
|
|
5964
5964
|
if (!item_id || item_id === 'undefined') {
|
|
5965
5965
|
throw new Error('item_id is missing or invalid:' + item_id);
|
|
5966
5966
|
}
|
|
5967
|
-
|
|
5967
|
+
const account_profile_info = await get_active_account_profile_info(uid);
|
|
5968
5968
|
let conversation_item = await db_module.get_app_couch_doc_native(account_profile_info.app_id, item_id);
|
|
5969
5969
|
|
|
5970
5970
|
// const item = await client.conversations.items.retrieve(item_id, { conversation_id });
|