TypeError: article.query is not a function
at search (/var/www/html/hamkelasi/middlewares/index.js:803:15)
at Layer.handle [as handle_request] (/var/www/html/hamkelasi/node_modules/express/lib/router/layer.js:95:5)
at next (/var/www/html/hamkelasi/node_modules/express/lib/router/route.js:137:13)
at indexSideBar (/var/www/html/hamkelasi/middlewares/index.js:716:5)
at Layer.handle [as handle_request] (/var/www/html/hamkelasi/node_modules/express/lib/router/layer.js:95:5)
at next (/var/www/html/hamkelasi/node_modules/express/lib/router/route.js:137:13)
at hourlyJson (/var/www/html/hamkelasi/middlewares/index.js:736:5)
at Layer.handle [as handle_request] (/var/www/html/hamkelasi/node_modules/express/lib/router/layer.js:95:5)
at next (/var/www/html/hamkelasi/node_modules/express/lib/router/route.js:137:13)
at dailyJson (/var/www/html/hamkelasi/middlewares/index.js:732:5)
at Layer.handle [as handle_request] (/var/www/html/hamkelasi/node_modules/express/lib/router/layer.js:95:5)
at next (/var/www/html/hamkelasi/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/var/www/html/hamkelasi/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/var/www/html/hamkelasi/node_modules/express/lib/router/layer.js:95:5)
at /var/www/html/hamkelasi/node_modules/express/lib/router/index.js:281:22
at param (/var/www/html/hamkelasi/node_modules/express/lib/router/index.js:354:14)
at param (/var/www/html/hamkelasi/node_modules/express/lib/router/index.js:365:14)
at Function.process_params (/var/www/html/hamkelasi/node_modules/express/lib/router/index.js:410:3)
at next (/var/www/html/hamkelasi/node_modules/express/lib/router/index.js:275:10)
at Function.handle (/var/www/html/hamkelasi/node_modules/express/lib/router/index.js:174:3)
at router (/var/www/html/hamkelasi/node_modules/express/lib/router/index.js:47:12)
at Layer.handle [as handle_request] (/var/www/html/hamkelasi/node_modules/express/lib/router/layer.js:95:5)