@xuda.io/ai_module 1.1.5338 → 1.1.5340
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 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5965,7 +5965,7 @@ export const conversation_actions = async function (req, job_id, headers) {
|
|
|
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
|
+
const 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 });
|
|
5971
5971
|
let pdf;
|
|
@@ -5993,8 +5993,8 @@ export const conversation_actions = async function (req, job_id, headers) {
|
|
|
5993
5993
|
data: '',
|
|
5994
5994
|
custom: {
|
|
5995
5995
|
setHeader: {
|
|
5996
|
-
headString:
|
|
5997
|
-
headValue: `
|
|
5996
|
+
headString: 'Content-Disposition',
|
|
5997
|
+
headValue: `attachment; filename="generated-file.pdf"`,
|
|
5998
5998
|
},
|
|
5999
5999
|
contentType: 'application/pdf',
|
|
6000
6000
|
send: pdf.content,
|