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) => {
|
Self.filter = async(ctx, filter, options) => {
|
||||||
const {Postcode} = Self.app.models;
|
const {Postcode} = Self.app.models;
|
||||||
let {value} = ctx.where;
|
const {value} = ctx.where;
|
||||||
let limit = ctx.where?.limit ?? 30;
|
const limit = ctx.where?.limit ?? 30;
|
||||||
return await Postcode.rawSql(`
|
return await Postcode.rawSql(`
|
||||||
SELECT pc.code, t.name as town, p.name as province , c.country
|
SELECT pc.code, t.name as town, p.name as province , c.country
|
||||||
FROM postCode pc
|
FROM postCode pc
|
||||||
|
|
Loading…
Reference in New Issue