Skip to content

Commit

Permalink
chore(Gallery): update issue link
Browse files Browse the repository at this point in the history
See broofa/mime#295

Signed-off-by: Martin Dünkelmann <[email protected]>
  • Loading branch information
MartinX3 committed Dec 2, 2023
1 parent ebab3b3 commit 3ab892f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/builder/rtc-cologne/gallery/GalleryEntryBuilder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TODO Workaround for `The requested module 'mime/lite' does not provide an export named 'getType'` https://github.com/broofa/mime/issues/291
// TODO Workaround for `The requested module 'mime/lite' does not provide an export named 'getType'` https://github.com/broofa/mime/issues/295
import mime from 'mime/lite'
import ABuilder from 'src/models/builder/ABuilder'
import GalleryEntry from 'src/models/entities/rtc-cologne/gallery/GalleryEntry'
Expand All @@ -15,7 +15,7 @@ export default class GalleryEntryBuilder extends ABuilder {

setImageUrl = (value: string): this => {
this.galleryEntry.imageUrl = new URL(`https://${value}`)
// TODO Workaround for `The requested module 'mime/lite' does not provide an export named 'getType'` https://github.com/broofa/mime/issues/291
// TODO Workaround for `The requested module 'mime/lite' does not provide an export named 'getType'` https://github.com/broofa/mime/issues/295
this.galleryEntry.mimeType = mime.getType(value)

return this
Expand Down

0 comments on commit 3ab892f

Please sign in to comment.