明树Git Lab

Commit 0a0fdf84 authored by zhangqi's avatar zhangqi

const -> let

parent 6ff918b7
...@@ -254,7 +254,7 @@ async function listUser(req, res, next) { ...@@ -254,7 +254,7 @@ async function listUser(req, res, next) {
async function deleteUser(req, res, next) { async function deleteUser(req, res, next) {
try { try {
const body = req.body; const body = req.body;
const search = {}; let search = {};
if (body.id) { if (body.id) {
search = { id: body.id }; search = { id: body.id };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment