mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
log publish
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user