@xuda.io/ai_module 1.1.3763 → 1.1.3766
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/old.mjs +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -3036,7 +3036,7 @@ const save_agent_status = async function (uid, agent_id, stat, agentConfig) {
|
|
|
3036
3036
|
export const create_ai_agent = async function (req, job_id, headers) {
|
|
3037
3037
|
const { agentConfig, uid } = req;
|
|
3038
3038
|
|
|
3039
|
-
const { account_project_id: app_id, account_info } = await account_module.
|
|
3039
|
+
const { account_project_id: app_id, account_info } = await account_module.get_default_project_account_doc(uid);
|
|
3040
3040
|
|
|
3041
3041
|
try {
|
|
3042
3042
|
const param = { uid, properties: { menuName: agentConfig.agent_name, menuTitle: agentConfig.agent_name, menuType: 'ai_agent' }, checkedInUserName: account_info.first_name + ' ' + account_info.last_name, app_id, parentId: 'ai_agents' };
|
|
@@ -5969,7 +5969,7 @@ const create_ai_agent_image = async function (req, job_id, headers) {
|
|
|
5969
5969
|
const images_arr = await create_and_upload_image_to_drive('studio', 'Progs Thumbnails', ai_agent_id, prompt, 1, uid, app_id, job_id, headers, false, tags);
|
|
5970
5970
|
return images_arr[0];
|
|
5971
5971
|
}
|
|
5972
|
-
|
|
5972
|
+
debugger;
|
|
5973
5973
|
let url = account_doc.account_info.profile_avatar;
|
|
5974
5974
|
|
|
5975
5975
|
try {
|
package/old.mjs
CHANGED
|
@@ -446,7 +446,7 @@ const get_account_object = async function (uid) {
|
|
|
446
446
|
};
|
|
447
447
|
|
|
448
448
|
const get_account_project_id = async function (uid) {
|
|
449
|
-
const account_obj = await account_module.
|
|
449
|
+
const account_obj = await account_module.get_default_project_account_doc(uid);
|
|
450
450
|
return account_obj.account_project_id;
|
|
451
451
|
};
|
|
452
452
|
|