A 68-year-old man with known peptic ulcer disease presents with haematemesis and melena. He is haemodynamically stable after resuscitation. Endoscopy undertaken within 24 hours shows a bleeding duodenal ulcer that has been successfully treated endoscopically. What is the most appropriate next step in management?