Skip to content

Commit

Permalink
Fix facility cover upload for local setups (#2264)
Browse files Browse the repository at this point in the history
fix facility cover upload for local setups

Co-authored-by: Vignesh Hari <[email protected]>
  • Loading branch information
sainak and vigneshhari authored Jun 13, 2024
1 parent 6e9757c commit 1313433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion care/facility/api/serializers/facility.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def save(self, **kwargs):
facility = self.instance
image = self.validated_data["cover_image"]
image_extension = image.name.rsplit(".", 1)[-1]
config, bucket_name = get_client_config(BucketType.FACILITY, True)
config, bucket_name = get_client_config(BucketType.FACILITY)
s3 = boto3.client("s3", **config)
image_location = f"cover_images/{facility.external_id}_cover.{image_extension}"
s3.put_object(
Expand Down

0 comments on commit 1313433

Please sign in to comment.