Skip to content

Commit 5a7514d

Browse files
committed
live-demo: adapt dashboard to express 5
AdminForth/1781/image
1 parent abe3de8 commit 5a7514d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

live-demo/app/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ if (import.meta.url === `file://${process.argv[1]}`) {
187187
admin.express.authorize(
188188
async (req: Request, res: Response) => {
189189
const db = admin.resource('aparts').dataConnector.client;
190-
const days = req.body.days || 7;
190+
const days = Number(req.query.days) || 7;
191191
const apartsByDays = await db.prepare(
192192
`SELECT
193193
strftime('%Y-%m-%d', created_at) as day,

0 commit comments

Comments
 (0)