Closed iAlirezaKML closed 7 years ago
Can you upload the sources of the model class? Especially the makeNode function would be interesting.
@vzsg Thanks! I forgot to include id
in the makeNode
function.
I know it's not the place, but I'm curious is there any built-in timestamp that I can use and not re-write it?
I don't think there's a built-in solution for Vapor 1.x. If you look around, you can find blogposts like this (I found this today) with close to ready solutions.
If you want to discuss questions like this, you might want to consider joining the Vapor Slack team for better exposure. 😉
I try to update a model and then saving it, but I'm getting this all the time:
I'm doing this:
The
model
is valid, but something happens insidemodel.save()
, when I logged,willUpdate()
is called, butdidUpdate()
is not being called.This is my config:
Thanks.