We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7afbe6 commit bf2af86Copy full SHA for bf2af86
1 file changed
cmd/api/posts.go
@@ -224,6 +224,6 @@ func (app *application) updatePost(ctx context.Context, post *store.Post) error
224
return err
225
}
226
227
- app.cacheStorage.Users.Delete(ctx, post.ID)
+ app.cacheStorage.Users.Delete(ctx, post.UserID)
228
return nil
229
0 commit comments