Skip to content

Commit

Permalink
fix(sys server): fix missing query params for func logs fetch api;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Sep 22, 2021
1 parent e2d4534 commit c9b8a75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/system-server/src/router/function/logs.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: Maslow<wangfugen@126.com>
* @Date: 2021-08-30 16:51:19
* @LastEditTime: 2021-09-10 01:14:32
* @LastEditTime: 2021-09-22 13:12:17
* @Description:
*/

Expand Down Expand Up @@ -30,8 +30,8 @@ export async function handleGetFunctionLogs(req: Request, res: Response) {

// build query object
const { requestId, func_id, trigger_id } = req.query
const limit = req.body?.limit ?? 10
const page = req.body?.page ?? 1
const limit = Number(req.query?.limit || 10)
const page = Number(req.query?.page || 1)

const query = {}

Expand Down

0 comments on commit c9b8a75

Please sign in to comment.