chore: update admin apis
This commit is contained in:
@@ -88,9 +88,10 @@ func (s *AdminService) NotifyUser(ctx context.Context, userID, title, body strin
|
||||
return s.notif.NotifyAdminMessage(ctx, userID, title, body)
|
||||
}
|
||||
|
||||
// ReplyFeedback stores the reply (resolving the row) and emails it to the
|
||||
// submitter when an address is known. Returns found=false if the id is
|
||||
// unknown, and emailed=true when a reply email was actually sent.
|
||||
// ReplyFeedback stores the reply and emails it to the submitter when an
|
||||
// address is known. It does not resolve the row (resolve is a separate
|
||||
// action). Returns found=false if the id is unknown, and emailed=true when a
|
||||
// reply email was actually sent.
|
||||
func (s *AdminService) ReplyFeedback(ctx context.Context, id, message string) (found, emailed bool, err error) {
|
||||
email, name, ok, err := s.repo.SaveReply(ctx, id, message)
|
||||
if err != nil || !ok {
|
||||
|
||||
Reference in New Issue
Block a user