Skip to content

Commit

Permalink
Fix task execution
Browse files Browse the repository at this point in the history
  • Loading branch information
malliina committed Dec 8, 2024
1 parent 1f3f9bb commit 68d7870
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions musicpimp/app/com/malliina/musicpimp/cloud/CloudSocket.scala
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,17 @@ class CloudSocket(
case t =>
log.error(s"Database failure when authenticating '$user'.", t)
false
authentication map { isValid =>
if isValid then sendSuccess(request, JsonMessages.version)
else sendFailure(request, JsonMessages.invalidCredentials)
}
authentication
.unsafeToFuture()
.map: isValid =>
if isValid then sendSuccess(request, JsonMessages.version)
else sendFailure(request, JsonMessages.invalidCredentials)
case GetVersion =>
sendSuccess(request, JsonMessages.version)
case GetMeta(id) =>
lib
.meta(id)
.unsafeToFuture()
.map: maybeTrack =>
maybeTrack
.map: track =>
Expand Down

0 comments on commit 68d7870

Please sign in to comment.