Skip to content

Commit

Permalink
getLocal(): remove use strict & attachment support
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Mar 27, 2024
1 parent 9f3399c commit f86dd92
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions packages/node_modules/pouchdb-adapter-indexeddb/src/getLocal.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

import { createError, MISSING_DOC } from 'pouchdb-errors';

import { META_LOCAL_STORE, processAttachment } from './util';
Expand All @@ -24,16 +22,6 @@ export default function (txn, id, api, callback) {
result._id = doc.id;
result._rev = doc.rev;

if (result._attachments) {
const processing = [];
for (var name in result._attachments) {
processing.push(processAttachment(name, doc, result, BINARY_ATTACHMENTS, api.blobSupport));
}
Promise.all(processing)
.then(() => callback(null, result))
.catch(callback);
} else {
callback(null, result);
}
callback(null, result);
};
}

0 comments on commit f86dd92

Please sign in to comment.