Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 3f7b433

Browse files
committed
Buffer() is deprecated
1 parent 6981841 commit 3f7b433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media/srv/media-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = srv => {
4040
req.reject(404, 'Media not found for the ID')
4141
return
4242
}
43-
const decodedMedia = new Buffer(
43+
const decodedMedia = Buffer.from(
4444
mediaObj.media.split(';base64,').pop(),
4545
'base64'
4646
)

0 commit comments

Comments
 (0)