Skip to content

Commit

Permalink
Merge pull request #1969 from UKHomeOffice/DRTII-1700-Add-ACL-to-SEN
Browse files Browse the repository at this point in the history
Drtii 1700 add acl to sen
  • Loading branch information
richbirch authored Dec 11, 2024
2 parents 43d7c5e + ab8de2e commit 3ce6754
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object Settings {
/** Declare global dependency versions here to avoid mismatches in multi part dependencies */
//noinspection ScalaStyle
object versions {
val drtLib = "v981"
val drtLib = "v993"

val scala = "2.13.12"
val scalaDom = "2.8.0"
Expand Down
10 changes: 5 additions & 5 deletions server/src/main/scala/drt/server/feeds/acl/AclFeed.scala
Original file line number Diff line number Diff line change
Expand Up @@ -248,20 +248,20 @@ object AclFeed {
val ArrDep: Int = allFields("ArrDep")
}

def aclToPortMapping(portCode: PortCode): Terminal => Terminal = portCode match {
case PortCode("LGW") => (tIn: Terminal) =>
def aclToPortMapping(portCode: PortCode): Terminal => Terminal = portCode.iata match {
case "LGW" => (tIn: Terminal) =>
Map[Terminal, Terminal](
T1 -> S,
T2 -> N,
).getOrElse(tIn, tIn)
case PortCode("EDI") => (tIn: Terminal) =>
case "EDI" => (tIn: Terminal) =>
Map[Terminal, Terminal](T1 -> A2).getOrElse(tIn, tIn)
case PortCode("LCY") => (tIn: Terminal) =>
case "LCY" => (tIn: Terminal) =>
Map[Terminal, Terminal](
ACLTER -> T1,
MainApron -> T1,
).getOrElse(tIn, tIn)
case PortCode("STN") =>
case "STN" =>
(tIn: Terminal) => Map[Terminal, Terminal](CTA -> T1).getOrElse(tIn, tIn)
case _ => (tIn: Terminal) => tIn
}
Expand Down

0 comments on commit 3ce6754

Please sign in to comment.