fixed some missing awaits
This commit is contained in:
@@ -17,8 +17,8 @@ router.post('/', async (req, res) => {
|
|||||||
|
|
||||||
const appVersion = 1;
|
const appVersion = 1;
|
||||||
|
|
||||||
createApplication(memberID, appVersion, JSON.stringify(App))
|
await createApplication(memberID, appVersion, JSON.stringify(App))
|
||||||
setUserState(memberID, MemberState.Applicant);
|
await setUserState(memberID, MemberState.Applicant);
|
||||||
|
|
||||||
res.sendStatus(201);
|
res.sendStatus(201);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user