Finish basic setup for configuration loading
This commit is contained in:
@@ -104,7 +104,7 @@ export const app = new Elysia()
|
||||
(app) => app
|
||||
// Non-authenticated
|
||||
.post("/calculate", async ({ body }) => {
|
||||
return { levels: s.Calculator.calculate(body.player, body.activityPerformances) };
|
||||
return { levels: await s.Calculator.calculate(body.player, body.activityPerformances) };
|
||||
}, {
|
||||
body: t.Object({
|
||||
player: PlayerSchema,
|
||||
|
||||
Reference in New Issue
Block a user