From 1aeb6747336c645e9268c1d1adc01ac6845aac9d Mon Sep 17 00:00:00 2001 From: Nriver <6752679+Nriver@users.noreply.github.com> Date: Fri, 11 Feb 2022 02:28:42 +0800 Subject: [PATCH] fix param validation (#2624) --- src/etapi/notes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etapi/notes.js b/src/etapi/notes.js index f5110d646..500b4d6bc 100644 --- a/src/etapi/notes.js +++ b/src/etapi/notes.js @@ -162,7 +162,7 @@ function parseBoolean(obj, name) { return obj[name] === 'true'; } -function parseInteger(obj, name) { +function parseOrderDirection(obj, name) { if (!(name in obj)) { return undefined; } @@ -176,7 +176,7 @@ function parseInteger(obj, name) { return integer; } -function parseOrderDirection(obj, name) { +function parseInteger(obj, name) { if (!(name in obj)) { return undefined; }