sequelizejs-cursor-pagination
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -7,2 +7,3 @@ const test = require('ava'); | ||
const withPagination = require('../src'); | ||
const { Op } = Sequelize; | ||
@@ -115,3 +116,3 @@ const Test = sequelize.define('test', { | ||
id: { | ||
$lte: 3, | ||
[Op.lte]: 3, | ||
} | ||
@@ -130,3 +131,3 @@ }, | ||
id: { | ||
$lte: 3, | ||
[Op.lte]: 3, | ||
} | ||
@@ -133,0 +134,0 @@ }, |
@@ -7,3 +7,3 @@ { | ||
"description": "Sequelize model decorator which provides cursor based pagination queries", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "./src/index.js", | ||
@@ -36,4 +36,4 @@ "license": "MIT", | ||
"sequelize": "^5.19.8", | ||
"sqlite3": "^3.1.11" | ||
"sqlite3": "^4.1.0" | ||
} | ||
} |
@@ -17,3 +17,3 @@ const Sequelize = require('sequelize'); | ||
return { | ||
$or: [ | ||
[Op.or]: [ | ||
{ | ||
@@ -69,3 +69,3 @@ [paginationField]: { | ||
const whereQuery = paginationQuery | ||
? { $and: [paginationQuery, where] } | ||
? { [Op.and]: [paginationQuery, where] } | ||
: where; | ||
@@ -72,0 +72,0 @@ |
12181
212