log publish

This commit is contained in:
Asim Aslam
2021-03-01 15:28:04 +00:00
parent 1143e13011
commit a9b80cb53e

View File

@@ -132,6 +132,7 @@ func (p *Posts) savePost(ctx context.Context, oldPost, post *proto.Post) error {
}
// publish the post as an event
logger.Info("Publishing post: '%v'", post.Title)
service.NewEvent("posts").Publish(ctx, post)
if oldPost == nil {