邮件详情样式优化和查询优化
This commit is contained in:
@@ -107,7 +107,7 @@ const userService = {
|
||||
await c.env.kv.delete(kvConst.AUTH_INFO + userId);
|
||||
},
|
||||
|
||||
async list(c, params, userId) {
|
||||
async list(c, params) {
|
||||
|
||||
let { num, size, email, timeSort, status } = params;
|
||||
|
||||
@@ -130,9 +130,10 @@ const userService = {
|
||||
|
||||
|
||||
if (email) {
|
||||
conditions.push(like(user.email, `${email}%`));
|
||||
conditions.push(sql`${user.email} COLLATE NOCASE LIKE ${email + '%'}`);
|
||||
}
|
||||
|
||||
|
||||
if (params.isDel) {
|
||||
conditions.push(eq(user.isDel, params.isDel));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user