-- fixes for dashboard

This commit is contained in:
Anton Romanov 2019-07-01 00:51:24 +04:00
parent 56d8098a01
commit 1fbee8f0f2
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ public interface PaperRepository extends JpaRepository<Paper, Integer> {
List<Paper> findByIdNotInAndConferencesIsNullAndStatusNot(List<Integer> paperIds, Paper.PaperStatus status);
@Query("SELECT p FROM Paper p WHERE p.status NOT IN (:statuses)")
Page<Paper> findAllWithoutStatuses(Pageable pageable, Paper.PaperStatus... statuses);
Page<Paper> findAllWithoutStatuses(Pageable pageable, @Param("statuses") Paper.PaperStatus... statuses);
@Query("SELECT p FROM Paper p ")
Page<Paper> findAll(Pageable pageable);

View File

@ -25,9 +25,9 @@
mounted: function () {
var self = this;
axiosEx.get(
appConfig.paperDashboard,
appConfig.paperDashboard + "?offset=0&count=50",
function (data) {
self.papers = data;
self.papers = data.items;
});
}
}