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
|
|
@ -13,6 +13,9 @@ import (
|
|||
"github.com/Gleipnir-Technology/nidus-sync/platform/types"
|
||||
)
|
||||
|
||||
func MailerByID(ctx context.Context, user User, id int32) (*types.Mailer, error) {
|
||||
return querypublic.MailerFromID(ctx, db.PGInstance.PGXPool, int64(user.Organization.ID), int64(id))
|
||||
}
|
||||
func MailerList(ctx context.Context, user User, limit int) ([]types.Mailer, error) {
|
||||
return querypublic.MailersFromOrganizationID(ctx, db.PGInstance.PGXPool, int64(user.Organization.ID), int64(limit))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue