Current section
3 Versions
Jump to
Current section
3 Versions
Compare versions
3
files changed
+3
additions
-3
deletions
| @@ -1,7 +1,7 @@ | |
| 1 1 | {<<"links">>, |
| 2 2 | [{<<"GitHub">>,<<"https://github.com/elepedus/kino_user_presence">>}]}. |
| 3 3 | {<<"name">>,<<"kino_user_presence">>}. |
| 4 | - {<<"version">>,<<"0.1.0">>}. |
| 4 | + {<<"version">>,<<"0.1.1">>}. |
| 5 5 | {<<"description">>, |
| 6 6 | <<"Provides user presence tracking functionality for Livebook applications.">>}. |
| 7 7 | {<<"elixir">>,<<"~> 1.17">>}. |
| @@ -75,7 +75,7 @@ defmodule KinoUserPresence do | |
| 75 75 | def handle_event("pong", payload, ctx) do |
| 76 76 | users = |
| 77 77 | ctx.assigns.users |
| 78 | - |> Map.update!(payload, fn map -> |
| 78 | + |> Map.update(payload,%{last_seen: DateTime.utc_now()}, fn map -> |
| 79 79 | Map.update!(map, :last_seen, fn _ -> DateTime.utc_now() end) |
| 80 80 | end) |
| @@ -4,7 +4,7 @@ defmodule KinoUserPresence.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :kino_user_presence, |
| 7 | - version: "0.1.0", |
| 7 | + version: "0.1.1", |
| 8 8 | elixir: "~> 1.17", |
| 9 9 | start_permanent: Mix.env() == :prod, |
| 10 10 | description: description(), |