Skip to content

Commit 21edae9

Browse files
committed
updated permission method
1 parent 45f8ff2 commit 21edae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/permissions/copilotApplications.view.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = freq => new Promise((resolve, reject) => {
1313
console.log("start permission check");
1414
const opportunityId = _.parseInt(freq.params.id);
1515
const currentUserId = freq.authUser.userId;
16-
return models.CopilotOpportunity.find({
16+
return models.CopilotOpportunity.findOne({
1717
where: {
1818
id: opportunityId,
1919
},

0 commit comments

Comments
 (0)