Skip to content

Commit

Permalink
prepare statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kbarbounakis committed Sep 27, 2024
1 parent ff178cd commit f099b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ DataPermissionEventListener.prototype.validate = function(event, callback) {
$expand
});
// stage 2: query for object and get original data
return q.where(model.primaryKey).equal(key).silent().flatten().getItems().then(
return q.prepare().where(model.primaryKey).equal(key).silent().flatten().getItems().then(
function(results) {
// throw error if more than one result is returned
if (results.length > 1) {
Expand Down

0 comments on commit f099b07

Please sign in to comment.