@xuda.io/account_module 1.2.1976 → 1.2.1978
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 +4 -3
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2890,7 +2890,7 @@ export const generate_contact_avatar = async function (req, job_id, headers) {
|
|
|
2890
2890
|
export const set_deep_research_contact = async function (req, job_id, headers) {
|
|
2891
2891
|
// const email_module = await import(`${module_path}/email_module/index.mjs`);
|
|
2892
2892
|
const ai_module = await import(`${module_path}/ai_module/index.mjs`);
|
|
2893
|
-
|
|
2893
|
+
|
|
2894
2894
|
const { contact_id, uid } = req;
|
|
2895
2895
|
const account_profile_info = await get_active_account_profile_info(uid);
|
|
2896
2896
|
try {
|
|
@@ -2925,14 +2925,15 @@ export const set_deep_research_contact = async function (req, job_id, headers) {
|
|
|
2925
2925
|
process_stat: 'partial',
|
|
2926
2926
|
},
|
|
2927
2927
|
});
|
|
2928
|
-
|
|
2928
|
+
debugger;
|
|
2929
2929
|
for await (let conversation_item of conversation_items.docs) {
|
|
2930
2930
|
try {
|
|
2931
2931
|
const account_profile_info = await get_active_account_profile_info(conversation_item.uid);
|
|
2932
2932
|
let conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_item.conversation_id);
|
|
2933
2933
|
|
|
2934
|
-
const transcript = ai_module.get_transcript(conversation_item.uid, conversation_item.app_id, conversation_item.conversation_id, account_profile_info, conversation_item.file.filename);
|
|
2934
|
+
const transcript = await ai_module.get_transcript(conversation_item.uid, conversation_item.app_id, conversation_item.conversation_id, account_profile_info, conversation_item.file.filename);
|
|
2935
2935
|
let items;
|
|
2936
|
+
console.log(transcript);
|
|
2936
2937
|
if (transcript) {
|
|
2937
2938
|
items = await ai_module.add_transcript_conversation_item(conversation_doc.reference_conversation_id, conversation_item.file.filename, transcript);
|
|
2938
2939
|
|