Unverified Commit 1938c9ca authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

extend event type matching to uppercase cases


Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent a7503ca3
Pipeline #20159 passed with stages
in 7 minutes and 37 seconds
...@@ -32,9 +32,9 @@ trait RecordUtils { ...@@ -32,9 +32,9 @@ trait RecordUtils {
} }
private def chooseEventType(eventAsString: String): Event = eventAsString match { private def chooseEventType(eventAsString: String): Event = eventAsString match {
case "Create" => Create case "Create" | "CREATE" => Create
case "Update" => Update case "Update" | "UPDATE" => Update
case "Delete" => Delete case "Delete" | "DELETE" => Delete
case s => UnknownEvent(s) case s => UnknownEvent(s)
} }
...@@ -58,7 +58,7 @@ trait RecordUtils { ...@@ -58,7 +58,7 @@ trait RecordUtils {
protected def isLocalRecord(obj: ujson.Obj, sftpPrefix: String = "sftp:/"): Boolean = { protected def isLocalRecord(obj: ujson.Obj, sftpPrefix: String = "sftp:/"): Boolean = {
hasKeyValue(obj, "locator") { hasKeyValue(obj, "locator") {
value => value.startsWith(sftpPrefix) _.startsWith(sftpPrefix)
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment