From b023d6cb8f631a6a180640efcb30b04fb5d4d7dc Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 16 Jul 2025 16:21:18 -0600 Subject: [PATCH] userinfo: await --- src/modules/utility/userinfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/utility/userinfo.js b/src/modules/utility/userinfo.js index 7428046..cf8a800 100644 --- a/src/modules/utility/userinfo.js +++ b/src/modules/utility/userinfo.js @@ -515,7 +515,7 @@ userinfo.callback = async function (msg, line) { const static = await fetch(imageUrl) .then((res) => res.arrayBuffer()) .then((b) => Buffer.from(b)); - const metadata = sharp(static).metadata(); + const metadata = await sharp(static).metadata(); const bg_light = nameplateBackground(metadata.width, metadata.height, palette.lightBackground, true); bg_light.composite([{input: static}]);