refs #6694 perf: change let to const

This commit is contained in:
Javier Segarra 2024-01-17 14:16:09 +01:00
parent 71f387f626
commit 92a3e841ed
1 changed files with 2 additions and 2 deletions

View File

@ -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