Fix updateOnDuplicate properties undefined error (#29)
Co-authored-by: John Webb john.webb@thoughtindustries.com
The plugin was throwing an error because properties wasn't defined and we were calling find
on it. This PR fixes that issue.
The plugin was throwing an error because properties wasn't defined and we were calling find
on it. This PR fixes that issue.
Added new rule that requires 'r' in base repo functions (#28)
Added new rule that requires 'r' in base repo functions
Added in check to make sure it's a repo function
Allow for this.r as an argument
DRY'd up a little
Co-authored-by: John Webb john.webb@thoughtindustries.com
It can be easy to forget the r
in repo functions. This rule requires r
as the first argument.
Allow for this.r as an argument
It can be easy to forget the r
in repo functions. This rule requires r
as the first argument.
Added in check to make sure it's a repo function
Fixes the Cannot read property 'find' of undefined
error (#27)
Co-authored-by: John Webb john.webb@thoughtindustries.com
When hitting updateOnDuplicate: Object.keys()
the plugin was throwing an error because the value wasn't an array. This updates it to skip Object.keys and only look in arrays.
When hitting updateOnDuplicate: Object.keys()
the plugin was throwing an error because the value wasn't an array. This updates it to skip Object.keys and only look in arrays.