Skip to content

Instantly share code, notes, and snippets.

@gabizinha12
Created December 19, 2020 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabizinha12/65a85fe4864814dc270797f6c67119de to your computer and use it in GitHub Desktop.
Save gabizinha12/65a85fe4864814dc270797f6c67119de to your computer and use it in GitHub Desktop.
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