refs #6694 perf: change let to const
This commit is contained in:
parent
71f387f626
commit
92a3e841ed
|
@ -15,8 +15,8 @@ module.exports = Self => {
|
|||
});
|
||||
Self.filter = async(ctx, filter, options) => {
|
||||
const {Postcode} = Self.app.models;
|
||||
let {value} = ctx.where;
|
||||
let limit = ctx.where?.limit ?? 30;
|
||||
const {value} = ctx.where;
|
||||
const limit = ctx.where?.limit ?? 30;
|
||||
return await Postcode.rawSql(`
|
||||
SELECT pc.code, t.name as town, p.name as province , c.country
|
||||
FROM postCode pc
|
||||
|
|
Loading…
Reference in New Issue