Skip to content

Commit 1cd3efa

Browse files
committed
in case user_id is not returned.
1 parent 456621c commit 1cd3efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/RabbitmqPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ class EventFilter(channel: Channel, queue: String) extends Actor {
12051205
Logger.debug("Received extractor status: " + statusBody)
12061206
val json = Json.parse(statusBody)
12071207
val file_id = UUID((json \ "file_id").as[String])
1208-
val user_id = UUID((json \ "user_id").as[String])
1208+
val user_id = (json \ "user_id").asOpt[String].fold(User.anonymous.id)(s => UUID(s))
12091209
val job_id: Option[UUID] = (json \ "job_id").asOpt[String] match {
12101210
case Some(jid) => { Some(UUID(jid)) }
12111211
case None => { None }

0 commit comments

Comments
 (0)