Make "retrieveBySport" function in genders.js async
parent
a8eb7dae0a
commit
e5b1791259
|
@ -5,7 +5,7 @@ const genders = require('../../constants/genders');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function retrieveBySport(sportID) {
|
async function retrieveBySport(sportID) {
|
||||||
const query = `SELECT gender
|
const query = `SELECT gender
|
||||||
from scores.divisions
|
from scores.divisions
|
||||||
WHERE sport_id = $1;`;
|
WHERE sport_id = $1;`;
|
||||||
|
|
Reference in New Issue