Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloo committed Dec 4, 2024
1 parent 7261317 commit 63b65c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/recording/get_recordings.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Onvif.Recording.GetRecordings do
import XmlBuilder
require Logger

alias Onvif.Recording.Recordings
alias Onvif.Recording.Recording

def soap_action, do: "http://www.onvif.org/ver10/recording/wsdl/GetRecordings"

Expand All @@ -27,9 +27,9 @@ defmodule Onvif.Recording.GetRecordings do
|> add_namespace("trc", "http://www.onvif.org/ver10/recording/wsdl")
|> add_namespace("tt", "http://www.onvif.org/ver10/schema")
)
|> Enum.map(&Recordings.parse/1)
|> Enum.map(&Recording.parse/1)
|> Enum.reduce([], fn raw_recording, acc ->
case Recordings.to_struct(raw_recording) do
case Recording.to_struct(raw_recording) do
{:ok, recording} ->
[recording | acc]

Expand Down

0 comments on commit 63b65c3

Please sign in to comment.