format admin.go

This commit is contained in:
santhoshivan23 2023-06-06 21:57:34 +05:30
parent fe2464fd4b
commit 8972c4b20d

View file

@ -114,8 +114,7 @@ func AdminCreateNewRegistrationToken(req *http.Request, cfg *config.ClientAPI, u
} }
pending := 0 pending := 0
completed := 0 completed := 0
// If usesAllowed or expiryTime is 0, it means they are not present in the request. NULL (indicating // If usesAllowed or expiryTime is 0, it means they are not present in the request. NULL (indicating unlimited uses / no expiration will be persisted in DB)
// unlimited uses / no expiration will be persisted in DB)
created, err := userAPI.PerformAdminCreateRegistrationToken(req.Context(), token, usesAllowed, expiryTime) created, err := userAPI.PerformAdminCreateRegistrationToken(req.Context(), token, usesAllowed, expiryTime)
if err != nil { if err != nil {
return util.MatrixErrorResponse( return util.MatrixErrorResponse(