Skip to content

Commit

Permalink
fix(QueryBuilder): Pass options to exists call in updateOrInsert
Browse files Browse the repository at this point in the history
  • Loading branch information
elpete committed Apr 1, 2021
1 parent 0a92cea commit f07d97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Query/QueryBuilder.cfc
Expand Up @@ -2486,7 +2486,7 @@ component displayname="QueryBuilder" accessors="true" {
* @return query
*/
public any function updateOrInsert( required struct values, struct options = {}, boolean toSql = false ) {
if ( exists() ) {
if ( exists( options = arguments.options ) ) {
return this.limit( 1 ).update( argumentCollection = arguments );
}

Expand Down

0 comments on commit f07d97e

Please sign in to comment.