Open kmlwlkwk opened 7 years ago
Visit .find( { where: { status: {nlike: 'finished'}, slug: params.slug }, order: 'createdAt DESC' }, function (error, visits) { if (error) reject(error); else { console.log(visits[0].status == 'finished'); //true resolve(visits); } } );
it's strange that I'm getting only subset of Visit with status 'finished' having slug = params.slug even if I update this model
I changed database from redis to mongodb. After data migration, everything work as expected
it's strange that I'm getting only subset of Visit with status 'finished' having slug = params.slug even if I update this model