Skip to content

Commit

Permalink
fix sec
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Feb 5, 2024
1 parent c6d07a7 commit 78168f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/up_rest.ex
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ defmodule UP.HTTP do
# GET PATHWAY

def get3(conn, auth, type, _, spec) when type == "account" do
secAdmin = :application.get_env :up, :security_admin, "1707126861546831000"
secAdmin = :application.get_env :up, :security_admin, :nitro.to_binary(:kvs.seq([],[]))
case auth do
_ when auth == secAdmin ->
accounts = :lists.map(fn x -> UP.Serial.fromRecord(x) end, :kvs.all("/#{type}"))
Expand Down

0 comments on commit 78168f3

Please sign in to comment.