Skip to content

Commit

Permalink
check action enabled in schema fixing codes
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Dec 18, 2024
1 parent 90e3390 commit 1796b26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function fixIDInCacheKeys(def, primaryKeyField) {
}
}

function actionEnabled(mixinOpts, actionName) {
function isActionEnabled(mixinOpts, actionName) {
if (typeof mixinOpts.createActions == "object") {
return mixinOpts.createActions[actionName] !== false;
}
Expand Down Expand Up @@ -149,5 +149,5 @@ module.exports = {
fixIDInCacheKeys,
generateValidatorSchemaFromFields,
generateFieldValidatorSchema,
actionEnabled
isActionEnabled
};

0 comments on commit 1796b26

Please sign in to comment.