Skip to content

Commit

Permalink
fix: memory adapter grant references for intended models
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Dec 1, 2022
1 parent 515b509 commit 357ced3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/memory_adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class MemoryAdapter {
}

const { grantId, userCode } = payload;
if (grantable.has(this.name) && grantId) {
if (grantable.has(this.model) && grantId) {
const grantKey = grantKeyFor(grantId);
const grant = storage.get(grantKey);
if (!grant) {
Expand Down

0 comments on commit 357ced3

Please sign in to comment.