diff options
author | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-12-11 22:53:01 +0100 |
---|---|---|
committer | Ognjen Cirkovic <ciraboxkg@gmail.com> | 2022-12-11 22:53:01 +0100 |
commit | 462d66ef305cb9262e55dd36726cc8f620275017 (patch) | |
tree | 78a69dd17d688e2e5844935ae9543e2a9b7017cc /Backend/Api | |
parent | af7822474cf7a241ae672ae8920ca5e23b80cd9f (diff) |
Ispraljen bug. Defaultni prikaz objava na stranici za sve objave.
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) |