Created
May 19, 2024 13:47
-
-
Save christopherbauer/e6fd11f1f68a647c5f3e2e56d2cf1aa0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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