From f812e53dc9ea366dc9ad1ee42f9b4b7e613a4705 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 8 Apr 2022 14:34:07 -0400 Subject: [PATCH] API: Add missing `await` This isn't strictly necessary, but it improves readability. --- src/node/db/API.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/db/API.js b/src/node/db/API.js index 9b2ecadc7..42803602c 100644 --- a/src/node/db/API.js +++ b/src/node/db/API.js @@ -851,7 +851,7 @@ const getPadSafe = async (padID, shouldExist, text, authorId = '') => { } // pad exists, let's get it - return padManager.getPad(padID, text, authorId); + return await padManager.getPad(padID, text, authorId); }; // checks if a rev is a legal number