changing add post meta to update in the update method of the factory