@xuda.io/ai_module 1.1.4553 → 1.1.4555
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 +10 -19
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -5255,17 +5255,16 @@ setTimeout(async () => {
|
|
|
5255
5255
|
// },
|
|
5256
5256
|
// });
|
|
5257
5257
|
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
// );
|
|
5258
|
+
ret = await get_profile_picture(
|
|
5259
|
+
uid,
|
|
5260
|
+
'business',
|
|
5261
|
+
'docxsite',
|
|
5262
|
+
{
|
|
5263
|
+
email: '',
|
|
5264
|
+
body: '',
|
|
5265
|
+
},
|
|
5266
|
+
account_profile_info,
|
|
5267
|
+
);
|
|
5269
5268
|
|
|
5270
5269
|
// ret =await get_business_info(uid, 'docxsite', 'info@docxsite.com', account_profile_info);
|
|
5271
5270
|
|
|
@@ -6170,14 +6169,6 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
6170
6169
|
const drive_ret = await drive_module.upload_drive_file_studio({ uid, app_id, path: '/Progs Thumbnails' }, job_id, headers, file_obj);
|
|
6171
6170
|
|
|
6172
6171
|
if (drive_ret.code > 0) {
|
|
6173
|
-
// let db_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
|
|
6174
|
-
// db_doc.studio_meta.thumbnail_request_ts = Date.now();
|
|
6175
|
-
// db_doc.studio_meta.agent_image = drive_ret.data;
|
|
6176
|
-
|
|
6177
|
-
// const save_ret = await db_module.save_app_couch_doc_native(app_id, db_doc);
|
|
6178
|
-
// console.log(save_ret);
|
|
6179
|
-
|
|
6180
|
-
// return save_ret;
|
|
6181
6172
|
return drive_ret;
|
|
6182
6173
|
} else {
|
|
6183
6174
|
throw new Error(drive_ret.data);
|