Created
December 19, 2020 19:52
-
-
Save gabizinha12/65a85fe4864814dc270797f6c67119de 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
async update({ params, request, response, session }) { | |
const trie = await Trie.find(params.id); | |
trie.name = request.input("name"); | |
trie.email = request.input("email"); | |
trie.area = request.input("area"); | |
await trie.save(); | |
session.flash({ successmessage: "Trie has been updated" }); | |
return response.redirect("/"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment