@xuda.io/ai_module 1.1.4788 → 1.1.4789
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
|
@@ -6961,7 +6961,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
6961
6961
|
image_blob_ret,
|
|
6962
6962
|
file,
|
|
6963
6963
|
profile_picture_source,
|
|
6964
|
-
drive_ret = {},
|
|
6964
|
+
drive_ret = { code: 1, data: {} },
|
|
6965
6965
|
resize = {};
|
|
6966
6966
|
|
|
6967
6967
|
switch (account_type) {
|
|
@@ -7042,7 +7042,7 @@ export const get_profile_picture = async function (uid, account_type = 'business
|
|
|
7042
7042
|
try {
|
|
7043
7043
|
image_blob_ret = await get_image_blob_from_downloaded_image(url);
|
|
7044
7044
|
profile_picture_source = 'google';
|
|
7045
|
-
drive_ret = { file_url: url };
|
|
7045
|
+
drive_ret.data = { file_url: url };
|
|
7046
7046
|
} catch (err) {
|
|
7047
7047
|
if (!err.message.includes('Failed to fetch image URL')) {
|
|
7048
7048
|
console.error(err);
|