aboutsummaryrefslogtreecommitdiff
path: root/Backend/Api
diff options
context:
space:
mode:
Diffstat (limited to 'Backend/Api')
-rw-r--r--Backend/Api/Api/Services/PostService.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Backend/Api/Api/Services/PostService.cs b/Backend/Api/Api/Services/PostService.cs
index 758d6b2..7ba5401 100644
--- a/Backend/Api/Api/Services/PostService.cs
+++ b/Backend/Api/Api/Services/PostService.cs
@@ -374,6 +374,10 @@ namespace Api.Services
}
}
}
+ if(lista.Count==0 && locid=="-1")
+ {
+ lista = await _posts.Find(_ => true).ToListAsync();
+ }
}
}
if (lista != null)