Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

elixir: use shared SowerClient.Schemas.Sid

+2 -2
+1 -1
apps/sower_agent/lib/sower_agent/storage.ex
··· 72 72 73 73 defp default() do 74 74 %__MODULE__{ 75 - local_sid: "lsid_#{Cuid2Ex.create()}" 75 + local_sid: SowerClient.Schemas.Sid.generate("lsid") 76 76 } 77 77 end 78 78 end
+1 -1
apps/sower_client/lib/schemas/orchestration/upgrade_request.ex
··· 27 27 """ 28 28 def new(map) do 29 29 map 30 - |> Map.put_new_lazy(:request_id, fn -> "req_#{Cuid2Ex.create()}" end) 30 + |> Map.put_new_lazy(:request_id, fn -> SowerClient.Schemas.Sid.generate("req") end) 31 31 |> cast() 32 32 end 33 33 end