diff options
author | Simponic <loganhunt@simponic.xyz> | 2022-12-30 05:46:35 -0700 |
---|---|---|
committer | Simponic <loganhunt@simponic.xyz> | 2022-12-30 05:46:35 -0700 |
commit | 42425b02260d279cd9c12fb3e625282979b9e308 (patch) | |
tree | 0412bf9f39d44266cff94082c499e44e5f6e60f5 /lib/chessh/schema/node.ex | |
parent | 60eea1b4ed65bc7cfce1e383dac6de9d004540eb (diff) | |
download | chessh-42425b02260d279cd9c12fb3e625282979b9e308.tar.gz chessh-42425b02260d279cd9c12fb3e625282979b9e308.zip |
Add scalable session thresholds
Diffstat (limited to 'lib/chessh/schema/node.ex')
-rw-r--r-- | lib/chessh/schema/node.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chessh/schema/node.ex b/lib/chessh/schema/node.ex index 867a6e2..8834aef 100644 --- a/lib/chessh/schema/node.ex +++ b/lib/chessh/schema/node.ex @@ -5,7 +5,7 @@ defmodule Chessh.Node do @primary_key {:id, :string, []} schema "nodes" do - field(:last_start, :utc_datetime) + field(:last_start, :utc_datetime_usec) end def changeset(node, attrs) do @@ -18,7 +18,7 @@ defmodule Chessh.Node do nil -> %Chessh.Node{id: node_id} node -> node end - |> Chessh.Node.changeset(%{last_start: DateTime.utc_now()}) + |> changeset(%{last_start: DateTime.utc_now()}) |> Repo.insert_or_update() end end |