Restore accidentally removed platform mailer by ID func
Needed by the mailer resource
This commit is contained in:
parent
feff03428f
commit
1c8b13b31e
3 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue