Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
📁 Profile image storage destination
Browse files Browse the repository at this point in the history
  • Loading branch information
benlmyers committed Mar 5, 2022
1 parent afc030a commit 2e6738b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/EasyFirebase/Services/Auth/EasyUser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public extension EasyUser {
*/
func updatePhoto<T>(with data: Data, ofUserType type: T.Type, completion: @escaping (Error?) -> Void = { _ in }) where T: EasyUser {
guard assertAuthMatches() else { return }
EasyStorage.put(data, to: StorageResource(id: id)) { [self] url in
EasyStorage.put(data, to: StorageResource(id: id, folder: "Profile Images")) { [self] url in
guard let url = url else { return }
updatePhoto(with: url, ofUserType: type, completion: completion)
}
Expand Down

0 comments on commit 2e6738b

Please sign in to comment.