Skip to content

Commit

Permalink
Rename variable criteria to operation
Browse files Browse the repository at this point in the history
  • Loading branch information
falkodev committed Aug 4, 2023
1 parent 32526cc commit 1877a79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/@apostrophecms/import-export-doc-type/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
improve: '@apostrophecms/doc-type',

init(self) {
const criteria = {
const operation = {
action: 'export',
context: 'update',
label: 'aposImportExport:export',
Expand All @@ -17,11 +17,11 @@ module.exports = {
$ne: self.__meta.name
}
});
criteria.if = {
operation.if = {
$and: excludedTypes
};
}

self.apos.doc.addContextOperation(criteria);
self.apos.doc.addContextOperation(operation);
}
};

0 comments on commit 1877a79

Please sign in to comment.