Fix bug in deletion queue processing
This commit is contained in:
parent
d935b843a8
commit
a6f2f2f4f1
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ pub struct DeletionQueue {
|
|||
impl DeletionQueue {
|
||||
pub async fn process(self, config: &Config) -> () {
|
||||
remove_files(self.files, &config.media_dir());
|
||||
if self.ipfs_objects.is_empty() {
|
||||
if !self.ipfs_objects.is_empty() {
|
||||
match &config.ipfs_api_url {
|
||||
Some(ipfs_api_url) => {
|
||||
ipfs_store::remove(ipfs_api_url, self.ipfs_objects).await
|
||||
|
|
Loading…
Reference in a new issue