Commit 21f85f2
committed
fix(webapp): treat Loops 404 as successful contact deletion
When deleting a Loops contact, a 404 response indicates the contact
doesn’t exist, which is already the desired end state. Handle this
explicitly by returning true instead of falling through to the generic
error path.
- Treat HTTP 404 from Loops delete endpoint as success
- Add test coverage for the 404 case1 parent 0c6a725 commit 21f85f2
File tree
2 files changed
+17
-0
lines changed- apps/webapp
- app/services
- test
2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
61 | 73 | | |
62 | 74 | | |
63 | 75 | | |
| |||
0 commit comments