Skip to content

Commit

Permalink
Include metadata when fetching snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfortun committed Jan 25, 2023
1 parent 71f36b1 commit f845c4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,8 @@ Backend.prototype._fetchSnapshot = function(collection, id, version, callback) {
// - we want to avoid the 'op' middleware, because we later use the 'readSnapshots' middleware in _sanitizeSnapshots
// - we handle the projection in _sanitizeSnapshots
var from = milestoneSnapshot ? milestoneSnapshot.v : 0;
db.getOps(collection, id, from, version, null, function(error, ops) {
var options = {metadata: true};
db.getOps(collection, id, from, version, options, function(error, ops) {
if (error) return callback(error);

backend._buildSnapshotFromOps(id, milestoneSnapshot, ops, function(error, snapshot) {
Expand Down

0 comments on commit f845c4f

Please sign in to comment.