forked from didirus/AstralRinth
More project type validators (#383)
This commit is contained in:
@@ -27,7 +27,7 @@ impl DownloadQueue {
|
||||
pub async fn index(&self, pool: &PgPool) -> Result<(), DatabaseError> {
|
||||
let queue = self.take().await;
|
||||
|
||||
if queue.len() > 0 {
|
||||
if !queue.is_empty() {
|
||||
let mut transaction = pool.begin().await?;
|
||||
|
||||
for (project_id, version_id) in queue {
|
||||
|
||||
Reference in New Issue
Block a user