From e5b17912598205daa24502fecd4468fd14f0f6b8 Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Sun, 21 Nov 2021 15:59:07 -0700 Subject: [PATCH] Make "retrieveBySport" function in genders.js async --- database/scores/genders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/scores/genders.js b/database/scores/genders.js index 9e6ba44..c86221a 100644 --- a/database/scores/genders.js +++ b/database/scores/genders.js @@ -5,7 +5,7 @@ const genders = require('../../constants/genders'); -function retrieveBySport(sportID) { +async function retrieveBySport(sportID) { const query = `SELECT gender from scores.divisions WHERE sport_id = $1;`;