@xuda.io/ai_module 1.1.3629 → 1.1.3630
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 +2 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3079,7 +3079,7 @@ export const update_thumbnail = async function (type, doc, app_id, uid, job_id,
|
|
|
3079
3079
|
case 'ai_agent': {
|
|
3080
3080
|
db_doc = await get_db_doc();
|
|
3081
3081
|
|
|
3082
|
-
images_arr = create_ai_agent_image;
|
|
3082
|
+
images_arr = await create_ai_agent_image({ app_id, uid, ai_agent_id }, job_id, headers);
|
|
3083
3083
|
db_doc = await get_db_doc();
|
|
3084
3084
|
db_doc.studio_meta.thumbnail_request_ts = Date.now();
|
|
3085
3085
|
db_doc.studio_meta.agent_image = images_arr;
|
|
@@ -5771,7 +5771,7 @@ export const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5771
5771
|
return { is_transparent, image_blob: new Blob([buffer], { type: 'image/png' }) };
|
|
5772
5772
|
}
|
|
5773
5773
|
|
|
5774
|
-
const { app_id, uid,
|
|
5774
|
+
const { app_id, uid, ai_agent_id } = req;
|
|
5775
5775
|
|
|
5776
5776
|
const ai_agent_doc = await db_module.get_app_couch_doc_native(app_id, ai_agent_id);
|
|
5777
5777
|
const account_doc = await db_module.get_couch_doc_native('xuda_accounts', uid);
|