Commit 511cb82
committed
fix(backend): propagate failure when granting data access
addDataAccessUser returns a Rejection rather than throwing, and the
empty else branch discarded it. The caller then stamped claimedAt, so
a failed insert burned the invite, granted nothing, and reported
success with no log or event.
Throw the Rejection (it extends GraphQLError) so the accept aborts
before the invite is marked claimed. Removes both TODOs.1 parent e8d29e8 commit 511cb82
1 file changed
Lines changed: 18 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
492 | 489 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
505 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
506 | 505 | | |
507 | 506 | | |
508 | 507 | | |
| |||
0 commit comments