You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constdata=awaitPostal.query().whereRaw(`codigo like ${busqueda}`).where('estado_id',estado).preload('estado').preload('municipio',q=>q.where('estado_id',estado))
29
41
30
42
constpayload={
31
43
values: data.length,
@@ -36,9 +48,15 @@ export default class PostalsController {
const{ colonia, estado }=awaitcoloniaEstadoValidator.validate(params)
53
+
54
+
constnewColonia=decodeURIComponent(colonia)
55
+
constpage=request.input('page',1)
56
+
constlimit=15
57
+
58
+
constdata=awaitPostal.query().whereRaw(`nombre like '%${newColonia}%'`).where('estado_id',estado).preload('municipio',q=>q.where('estado_id',estado)).paginate(page,limit)
0 commit comments