handle schedule with empty tags

This commit is contained in:
Ruben Fiszel
2024-02-21 23:08:53 +01:00
parent 1a4e56d18a
commit 3946e54e70
+5 -1
View File
@@ -152,7 +152,11 @@ pub async fn push_scheduled_job<'c, R: rsmq_async::RsmqConnection + Send + 'c>(
language,
priority,
},
schedule.tag.or(tag),
if schedule.tag.as_ref().is_some_and(|x| x != "") {
schedule.tag
} else {
tag
},
timeout,
)
}