@xuda.io/ai_module 1.1.4413 → 1.1.4414
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
|
@@ -3362,10 +3362,11 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
|
|
|
3362
3362
|
if (!cache) {
|
|
3363
3363
|
const images_arr = await create_and_upload_image_to_drive('user', 'Chat Thumbnails', doc._id, prompt, 1, uid, app_id, job_id, headers, true, tags, account_profile_info);
|
|
3364
3364
|
account_module.save_picture_cache(uid, 'chat_thumbnail', prompt.substr(14), images_arr[0], { tags });
|
|
3365
|
-
db_doc = await get_db_doc();
|
|
3366
|
-
db_doc.thumbnail_request_ts = Date.now();
|
|
3367
|
-
db_doc.chat_image = images_arr;
|
|
3368
3365
|
}
|
|
3366
|
+
db_doc = await get_db_doc();
|
|
3367
|
+
db_doc.thumbnail_request_ts = Date.now();
|
|
3368
|
+
db_doc.chat_image = images_arr;
|
|
3369
|
+
|
|
3369
3370
|
break;
|
|
3370
3371
|
}
|
|
3371
3372
|
|