[server] use custom request struct for modifying functionality

This commit is contained in:
mngshm
2025-02-11 17:20:04 +05:30
parent 8da160b834
commit bf4807da5b
2 changed files with 6 additions and 1 deletions

View File

@@ -122,7 +122,7 @@ func (h *FamilyHandler) AcceptInvite(c *gin.Context) {
// ModifyStorageLimit allows adminUser to Modify the storage for a member in the Family.
func (h *FamilyHandler) ModifyStorageLimit(c *gin.Context) {
var request ente.FamilyMember
var request ente.ModifyMemberStorage
if err := c.ShouldBindJSON(&request); err != nil {
handler.Error(c, stacktrace.Propagate(err, "Could not bind request params"))
return