mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
2 diff test
This commit is contained in:
@@ -23,7 +23,9 @@ Diffs.exists = function (pid, callback) {
|
||||
|
||||
Diffs.get = function (pid, since, callback) {
|
||||
async.waterfall([
|
||||
async.apply(db.getListRange.bind(db), 'post:' + pid + ':diffs', 0, -1),
|
||||
function (next) {
|
||||
Diffs.list(pid, next);
|
||||
},
|
||||
function (timestamps, next) {
|
||||
// Pass those made after `since`, and create keys
|
||||
const keys = timestamps.filter(function (timestamp) {
|
||||
|
||||
Reference in New Issue
Block a user