From 117d278d167ab1808a815e51ff81f2a3187f9cf5 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 19 Dec 2020 15:58:21 -0800 Subject: [PATCH] fix: Deprecated Buffer usage, closes #1726 --- server/utils/s3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/s3.js b/server/utils/s3.js index 4cf11ee23..d50f10860 100644 --- a/server/utils/s3.js +++ b/server/utils/s3.js @@ -59,7 +59,7 @@ export const makePolicy = ( expiration: format(tomorrow, "YYYY-MM-DDTHH:mm:ss\\Z"), }; - return new Buffer(JSON.stringify(policy)).toString("base64"); + return Buffer.from(JSON.stringify(policy)).toString("base64"); }; export const getSignature = (policy: any) => {