Skip to content

Commit bf2af86

Browse files
committed
fix: delete cache post user instead of postid
1 parent d7afbe6 commit bf2af86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/api/posts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,6 @@ func (app *application) updatePost(ctx context.Context, post *store.Post) error
224224
return err
225225
}
226226

227-
app.cacheStorage.Users.Delete(ctx, post.ID)
227+
app.cacheStorage.Users.Delete(ctx, post.UserID)
228228
return nil
229229
}

0 commit comments

Comments
 (0)