Commit 1fffd40
fix: always include grant card in Plain customer cards response
When Plain requests the grant card via cardKeys, always include it in
the response even when the user doesn't exist. Previously, if the user
was not found, we returned an empty cards array. Now we return an empty
grant card ({key: "grant", components: []}) to match Plain's expectation
that all requested card keys are always present in the response.
Closes #4553
Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>1 parent 10b9c2c commit 1fffd40
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
0 commit comments