Inject generateAvatarImage into insertUser

This commit is contained in:
Alex Holliday committed 2024-11-12 16:16:20 +08:00
1 parent b55407489b
commit 57cad8d31a
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ const SERVICE_NAME = "userModule";
* @returns {Promise<UserModel>}
* @throws {Error}
*/
const insertUser = async (userData, imageFile) => {
const insertUser = async (userData, imageFile, GenerateAvatarImage) => {
try {
if (imageFile) {
// 1. Save the full size image