fix str in file uid
This commit is contained in:
@@ -134,7 +134,7 @@ class FileUploadService(BaseService):
|
||||
return response_data
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"An error occurred while uploading file: {str(e)}", exc_info=True)
|
||||
logger.error(f"An error occurred while uploading profile file: {str(e)}", exc_info=True)
|
||||
return jsonify({"message": "Internal Server Error"}), 500
|
||||
|
||||
@staticmethod
|
||||
|
||||
@@ -103,7 +103,7 @@ class Members(db.Model):
|
||||
logger.info(f"User UID = {uid} found")
|
||||
raise ValueError(f"Member with UID {uid} does not exist.")
|
||||
|
||||
member.profile_picture = picture_uid.str()
|
||||
member.profile_picture = picture_uid
|
||||
return member.profile_picture
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user