@xuda.io/ai_module 1.1.4709 → 1.1.4711
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 +5 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1999,12 +1999,12 @@ export const delete_ai_chat = async function (req) {
|
|
|
1999
1999
|
const app_id = await account_module.get_account_default_project_id(uid);
|
|
2000
2000
|
let conversation_doc = await db_module.get_app_couch_doc_native(account_profile_info.app_id, conversation_id);
|
|
2001
2001
|
|
|
2002
|
-
if (conversation_doc.stat !== 5) {
|
|
2003
|
-
throw new Error('A document can only be deleted after it has been archived');
|
|
2004
|
-
}
|
|
2005
|
-
|
|
2006
2002
|
let save_ret;
|
|
2007
2003
|
try {
|
|
2004
|
+
if (conversation_doc.stat !== 5) {
|
|
2005
|
+
throw new Error('A document can only be deleted after it has been archived');
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
2008
|
if (conversation_doc.shared_from_uid) {
|
|
2009
2009
|
// delete the share , the doc will delete by the remove_team_member
|
|
2010
2010
|
const team_module = await import(`${module_path}/team_module/index.mjs`);
|
|
@@ -5533,6 +5533,7 @@ setTimeout(async () => {
|
|
|
5533
5533
|
// await init_studio_units();
|
|
5534
5534
|
let ret;
|
|
5535
5535
|
// ret = await is_spam_email(uid, 'dsgr8-2994400420@gigs.craigslist.org', 'To: You, From: Us - 70% Off Stickers & Labels Today Only');
|
|
5536
|
+
ret = await is_spam_email(uid, 'noreply@tm.openai.com', 'Please update your Plus payment method', account_profile_info);
|
|
5536
5537
|
// ret = await delete_depended_chats(uid);
|
|
5537
5538
|
// ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'table_builder', { name: 'test2', prompt: 'build items table', save: true });
|
|
5538
5539
|
// ret = await run_plugin(app_id, uid, '@xuda.io/xuda-library-plugin-studio-ai-app-builder', 'folder_builder', { name: 'test', prompt: 'build boaz folder', save: true, parentId: 'programs' });
|