diff --git a/backend/__debug_bin2556343980 b/backend/__debug_bin961456679
similarity index 89%
rename from backend/__debug_bin2556343980
rename to backend/__debug_bin961456679
index a5ff30d..94df6e2 100755
Binary files a/backend/__debug_bin2556343980 and b/backend/__debug_bin961456679 differ
diff --git a/backend/modules/medias/service.go b/backend/modules/medias/service.go
index 49eb5ba..a36c9d4 100644
--- a/backend/modules/medias/service.go
+++ b/backend/modules/medias/service.go
@@ -131,12 +131,12 @@ func (svc *Service) List(ctx context.Context, tenantId, userId int64, filter *Li
if filter.OffsetID > 0 {
if filter.Action == 0 {
- stmt = stmt.WHERE(tbl.ID.GT(Int(filter.OffsetID)))
+ stmt = stmt.WHERE(tbl.ID.LT(Int(filter.OffsetID)))
+ stmt = stmt.LIMIT(10)
}
if filter.Action == 1 {
- stmt = stmt.WHERE(tbl.ID.LT(Int(filter.OffsetID)))
- stmt = stmt.LIMIT(10)
+ stmt = stmt.WHERE(tbl.ID.GT(Int(filter.OffsetID)))
}
} else {
stmt = stmt.LIMIT(10)
diff --git a/frontend/src/components/List.vue b/frontend/src/components/List.vue
index aefbe93..2cd75b6 100644
--- a/frontend/src/components/List.vue
+++ b/frontend/src/components/List.vue
@@ -4,15 +4,15 @@
-
+