Skip to content

Instantly share code, notes, and snippets.

View satowind's full-sized avatar

Ogugua Tochukwu satowind

View GitHub Profile
@satowind
satowind / .js
Created February 6, 2019 10:23
Make this Node Javascript Better
router.post('/verify_car', async (req , res , next)=>{
let car_chases = await Properties.findOne( {s_number:req.body.car_chases, type:3} );
if (car_chases){
let car_chases_stolen = await Properties.findOne( {s_number:req.body.car_chases , status:2, type:3} )
if(car_chases_stolen){