Finish refactoring auth slice, fixed several bugs
This commit is contained in:
1 parent
46bd317760
commit
6d99002fd1
6 files changed
+59
-22
No files matched your search
@@ -294,7 +294,7 @@ const getMonitorById = async (monitorId) => {
|
||||
*/
|
||||
const getMonitorsByUserId = async (req, res) => {
|
||||
try {
|
||||
let { limit, type, status, sortOrder, normalize } = req.query;
|
||||
let { limit, type, status, sortOrder, normalize } = req.query || {};
|
||||
const monitorQuery = { userId: req.params.userId };
|
||||
|
||||
if (type !== undefined) {
|
||||
|
||||
Reference in new issue
Block a user