diff options
author | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-12-11 23:28:41 +0100 |
---|---|---|
committer | TAMARA JERINIC <tamara.jerinic@gmail.com> | 2022-12-11 23:28:41 +0100 |
commit | 7258ef7ee138ea4496f55ea19c275982fa5e0c27 (patch) | |
tree | f7f856d5ae8cb73dafc66fd3dcbae92ee40109da /Backend/Api | |
parent | eeb13f4819195afc7e3ab08b4f19f76fbaf035b2 (diff) | |
parent | 462d66ef305cb9262e55dd36726cc8f620275017 (diff) |
Merge branch 'develop' of http://gitlab.pmf.kg.ac.rs/BrzoDoLokacije2022/odyssey/brzodolokacije into develop
Diffstat (limited to 'Backend/Api')
-rw-r--r-- | Backend/Api/Api/Services/PostService.cs | 4 |
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) |