Restore accidentally removed platform mailer by ID func

Needed by the mailer resource
This commit is contained in:
Eli Ribble 2026-05-16 18:12:01 +00:00
parent feff03428f
commit 1c8b13b31e
No known key found for this signature in database
3 changed files with 7 additions and 2 deletions

View file

@ -35,7 +35,7 @@ func (res *mailerR) ByIDGet(ctx context.Context, r *http.Request, user platform.
}
return mailer, nil
}
func (res *mailerR) List(ctx context.Context, r *http.Request, user platform.User, query QueryParams) ([]*types.Mailer, *nhttp.ErrorWithStatus) {
func (res *mailerR) List(ctx context.Context, r *http.Request, user platform.User, query QueryParams) ([]types.Mailer, *nhttp.ErrorWithStatus) {
limit := 1000
if query.Limit != nil {
limit = *query.Limit