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
|
|
@ -46,7 +46,9 @@ func mailerBaseQuery() postgres.SelectStatement {
|
|||
),
|
||||
)
|
||||
}
|
||||
func MailerFromPublicID(ctx context.Context, txn db.Ex, org_id int64, id int64) (*types.Mailer, error) {
|
||||
|
||||
// func MailerFromPublicID(ctx context.Context, txn db.Ex, org_id int64, id int64) (*types.Mailer, error) {
|
||||
func MailerFromID(ctx context.Context, txn db.Ex, org_id int64, id int64) (*types.Mailer, error) {
|
||||
statement := mailerBaseQuery().WHERE(
|
||||
table.ComplianceReportRequest.ID.EQ(postgres.Int(id)).AND(
|
||||
table.Site.OrganizationID.EQ(postgres.Int(org_id))),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue