Skip to content

Commit

Permalink
VIP - Update lock file and add extra condition for event hook
Browse files Browse the repository at this point in the history
  • Loading branch information
shahryarjb committed Jul 2, 2024
1 parent 3a43d73 commit e8e099f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions lib/event/hook.ex
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ defmodule MishkaInstaller.Event.Hook do
:persistent_term.get(:compile_status, nil) == "ready" do
Hook.register_start_helper(__MODULE__, state)
else
Process.send_after(__MODULE__, :register_start_again, 1000)
Process.send_after(__MODULE__, :start_again, 1000)
state
end

Expand Down Expand Up @@ -298,7 +298,11 @@ defmodule MishkaInstaller.Event.Hook do
if MSE.safe_initialize?(event) and module.is_initialized?(db_plg) do
Keyword.merge(state, status: db_plg.status, depends: db_plg.depends)
else
Hook.start_helper(__MODULE__, state, db_plg)
if is_nil(db_plg) do
Hook.register_start_helper(__MODULE__, state)
else
Hook.start_helper(__MODULE__, state, db_plg)
end
end

{:noreply, new_state}
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"makeup_erlang": {:hex, :makeup_erlang, "1.0.0", "6f0eff9c9c489f26b69b61440bf1b238d95badae49adac77973cbacae87e3c2e", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "ea7a9307de9d1548d2a72d299058d1fd2339e3d398560a0e46c27dab4891e4d2"},
"mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"},
"mint": {:hex, :mint, "1.6.1", "065e8a5bc9bbd46a41099dfea3e0656436c5cbcb6e741c80bd2bad5cd872446f", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1 or ~> 0.2.0", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "4fc518dcc191d02f433393a72a7ba3f6f94b101d094cb6bf532ea54c89423780"},
"mishka_developer_tools": {:hex, :mishka_developer_tools, "0.1.6", "e44dba4a2663665b76b331fc7dedb2a980ac0cf5b8d49fc3f8f8da89daba9c74", [:mix], [{:argon2_elixir, "~> 4.0", [hex: :argon2_elixir, repo: "hexpm", optional: true]}, {:bcrypt_elixir, "~> 3.1", [hex: :bcrypt_elixir, repo: "hexpm", optional: true]}, {:email_checker, "~> 0.2.4", [hex: :email_checker, repo: "hexpm", optional: true]}, {:ex_phone_number, "~> 0.4.4", [hex: :ex_phone_number, repo: "hexpm", optional: true]}, {:ex_url, "~> 2.0", [hex: :ex_url, repo: "hexpm", optional: true]}, {:html_sanitize_ex, "~> 1.4.3", [hex: :html_sanitize_ex, repo: "hexpm", optional: true]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: true]}, {:joken, "~> 2.6", [hex: :joken, repo: "hexpm", optional: true]}, {:nimble_totp, "~> 1.0", [hex: :nimble_totp, repo: "hexpm", optional: true]}, {:pbkdf2_elixir, "~> 2.2", [hex: :pbkdf2_elixir, repo: "hexpm", optional: true]}, {:plug, "~> 1.16", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "5112c8020a8fcf527e96b82eba6555b2fee831966b6f742b26aed5e2f6de490e"},
"mishka_developer_tools": {:hex, :mishka_developer_tools, "0.1.7", "fc609c2c87646597bb843ea64d76a8928cf7b24afd7f8fbf004037b02926b201", [:mix], [{:argon2_elixir, "~> 4.0", [hex: :argon2_elixir, repo: "hexpm", optional: true]}, {:bcrypt_elixir, "~> 3.1", [hex: :bcrypt_elixir, repo: "hexpm", optional: true]}, {:email_checker, "~> 0.2.4", [hex: :email_checker, repo: "hexpm", optional: true]}, {:ex_phone_number, "~> 0.4.4", [hex: :ex_phone_number, repo: "hexpm", optional: true]}, {:ex_url, "~> 2.0", [hex: :ex_url, repo: "hexpm", optional: true]}, {:html_sanitize_ex, "~> 1.4.3", [hex: :html_sanitize_ex, repo: "hexpm", optional: true]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: true]}, {:joken, "~> 2.6", [hex: :joken, repo: "hexpm", optional: true]}, {:nimble_totp, "~> 1.0", [hex: :nimble_totp, repo: "hexpm", optional: true]}, {:pbkdf2_elixir, "~> 2.2", [hex: :pbkdf2_elixir, repo: "hexpm", optional: true]}, {:plug, "~> 1.16", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "50a9040d128d680178d3004cec473b2ac2ad9813d042e55112878c837083dbee"},
"nimble_options": {:hex, :nimble_options, "1.1.1", "e3a492d54d85fc3fd7c5baf411d9d2852922f66e69476317787a7b2bb000a61b", [:mix], [], "hexpm", "821b2470ca9442c4b6984882fe9bb0389371b8ddec4d45a9504f00a66f650b44"},
"nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"},
"nimble_pool": {:hex, :nimble_pool, "1.1.0", "bf9c29fbdcba3564a8b800d1eeb5a3c58f36e1e11d7b7fb2e084a643f645f06b", [:mix], [], "hexpm", "af2e4e6b34197db81f7aad230c1118eac993acc0dae6bc83bac0126d4ae0813a"},
Expand Down

0 comments on commit e8e099f

Please sign in to comment.