Skip to content

Commit

Permalink
fix: missing size in file
Browse files Browse the repository at this point in the history
firebase-functions does not return size right now and this fixes it
  • Loading branch information
wojtek-krysiak committed Oct 19, 2020
1 parent 81548fe commit b2a3589
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const updateRecordFactory = (
const params = {
[properties.key]: key,
...properties.bucket && { [properties.bucket]: provider.bucket },
...properties.size && { [properties.size]: uploadedFile.size.toString() },
...properties.size && { [properties.size]: uploadedFile.size?.toString() },
...properties.mimeType && { [properties.mimeType]: uploadedFile.type },
...properties.filename && { [properties.filename]: uploadedFile.name as string },
}
Expand Down

0 comments on commit b2a3589

Please sign in to comment.