Skip to content

Instantly share code, notes, and snippets.

@christopherbauer
Created May 19, 2024 13:47
Show Gist options
  • Save christopherbauer/e6fd11f1f68a647c5f3e2e56d2cf1aa0 to your computer and use it in GitHub Desktop.
Save christopherbauer/e6fd11f1f68a647c5f3e2e56d2cf1aa0 to your computer and use it in GitHub Desktop.
.put(async (req, res) => {
//continue an ongoing conversation
const { id } = req.params;
const { message } = req.body;
const response = await inMemoryDB.updateConversation(id, {
text: message,
sent: new Date(),
source: "user",
});
res.status(200).send(response);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment