This commit is contained in:
Lunny Xiao authored and Jason Song committed 2022-11-25 17:48:46 +08:00
1 parent 8ec691f3ce
commit e7d5c99b42
8 files changed
+56 -43

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ func FindObjects[Object any](ctx context.Context, cond builder.Cond, opts *ListO
if opts.Page < 1 {
opts.Page = 1
}
sess.Limit(opts.PageSize, opts.PageSize * (opts.Page - 1))
sess.Limit(opts.PageSize, opts.PageSize*(opts.Page-1))
}
return sess.Find(objects)
}