Add missing files in last two commits
This commit is contained in:
parent
81e057b900
commit
d047c460ed
3 changed files with 36 additions and 0 deletions
19
platform/mailer/mailer.go
Normal file
19
platform/mailer/mailer.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package mailer
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/Gleipnir-Technology/bob"
|
||||
"github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/rs/zerolog/log"
|
||||
)
|
||||
|
||||
func ComplianceSend(ctx context.Context, txn bob.Executor, row_id int32) error {
|
||||
compliance_req, err := models.FindComplianceReportRequest(ctx, txn, row_id)
|
||||
if err != nil {
|
||||
return fmt.Errorf("find compliance report: %w", err)
|
||||
}
|
||||
log.Debug().Int32("id", row_id).Str("public_id", compliance_req.PublicID).Msg("working on mailer")
|
||||
return nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue