@xuda.io/ai_module 1.1.4781 → 1.1.4783
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 +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -6960,6 +6960,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
6960
6960
|
image_blob_ret,
|
|
6961
6961
|
file,
|
|
6962
6962
|
profile_picture_source,
|
|
6963
|
+
drive_ret,
|
|
6963
6964
|
resize = {};
|
|
6964
6965
|
|
|
6965
6966
|
switch (account_type) {
|
|
@@ -7040,6 +7041,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
7040
7041
|
try {
|
|
7041
7042
|
image_blob_ret = await get_image_blob_from_downloaded_image(url);
|
|
7042
7043
|
profile_picture_source = 'google';
|
|
7044
|
+
drive_ret = { file_url: url };
|
|
7043
7045
|
} catch (err) {
|
|
7044
7046
|
if (!err.message.includes('Failed to fetch image URL')) {
|
|
7045
7047
|
console.error(err);
|
|
@@ -7113,7 +7115,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
7113
7115
|
mimetype: `image/png`,
|
|
7114
7116
|
};
|
|
7115
7117
|
|
|
7116
|
-
|
|
7118
|
+
drive_ret = await drive_module.upload_drive_file_user({ uid, path: '/Profile Images' }, job_id, headers, file_obj);
|
|
7117
7119
|
drive_ret.profile_picture_source = profile_picture_source;
|
|
7118
7120
|
}
|
|
7119
7121
|
return drive_ret;
|