-
-
Notifications
You must be signed in to change notification settings - Fork 676
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3071 +/- ##
==========================================
+ Coverage 66.57% 66.75% +0.18%
==========================================
Files 496 496
Lines 53525 53491 -34
==========================================
+ Hits 35634 35710 +76
+ Misses 14275 14181 -94
+ Partials 3616 3600 -16
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
return nil | ||
} | ||
func (a *UserInternalAPI) DeleteKeyBackup(ctx context.Context, userID, version string) (bool, error) { | ||
return a.DB.DeleteKeyBackup(ctx, userID, version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've lost validation here. Previous code checked version
was not empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already handled at the router level, with a missing {version}
variable the functions isn't called. Added a test anyway.
Also slightly refactors the functions and methods to rely less on the req/res pattern we had for polylith.
Returns
M_WRONG_ROOM_KEYS_VERSION
for some endpoints as per the spec