change function update for post

change id to post_id