const userid = knex('users').where('username', 'administrator').then(res => { return res[0].id });
console.log(userid);Promise { <pending> }
const userId = await knex('users').where('username', 'administrator').then(res => { return res[0].id });
async function func() {
const test = await Locations().where('id', locationid).select('city_id').first();
return test;
};
console.log( func());