dwyl / alog

🌲 alog (Append-only Log) is an easy way to start using the Lambda/Kappa architecture in your Elixir/Phoenix Apps while still using PostgreSQL (with Ecto).
GNU General Public License v2.0
15 stars 2 forks source link

keep inserted_at value to the original value #36

Closed SimonLab closed 5 years ago

SimonLab commented 5 years ago

ref: #30 Define inserted_at value to be the timestamp of the first item inserted

SimonLab commented 5 years ago

@Danwhy makes sense :+1:

SimonLab commented 5 years ago

@Danwhy the insert function should now keep the first inserted_at value. I've also updated the functions to sort by updated_at instead of inserterd_at to make sure to get the newest item.