@xuda.io/ai_module 1.1.4386 → 1.1.4388
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
|
@@ -5660,7 +5660,7 @@ const create_and_upload_image_to_drive = async function (drive_type, file_path,
|
|
|
5660
5660
|
}
|
|
5661
5661
|
};
|
|
5662
5662
|
|
|
5663
|
-
export const
|
|
5663
|
+
export const create_avatar = async function (req, job_id, headers) {
|
|
5664
5664
|
const { uid, url } = req;
|
|
5665
5665
|
try {
|
|
5666
5666
|
const account_profile_info = await get_active_account_profile_info(uid);
|
|
@@ -5864,7 +5864,7 @@ export const get_profile_avatar = async function (profile_picture, uid, prompt,
|
|
|
5864
5864
|
console.log('Success! Saved →', outputPath);
|
|
5865
5865
|
|
|
5866
5866
|
const ext = 'png';
|
|
5867
|
-
const originalname = `avatar_${email || _id || name}.${ext}`;
|
|
5867
|
+
const originalname = `avatar_${normalizeFilename(email || _id || name)}.${ext}`;
|
|
5868
5868
|
|
|
5869
5869
|
const file_obj = {
|
|
5870
5870
|
originalname,
|