basic system promp
This commit is contained in:
1 parent
b3be1a81e6
commit
a36f1231cd
9 files changed
+48
-12
No files matched your search
@@ -190,7 +190,7 @@ func (t Table[T]) Select(options ...Option) ([]*T, error) {
|
||||
if q.pagesize != 0 {
|
||||
query += fmt.Sprintf(" limit %d", q.pagesize)
|
||||
if q.pagenum != 0 {
|
||||
query += fmt.Sprintf(" offset %d", q.pagesize*q.pagenum)
|
||||
query += fmt.Sprintf(" offset %d", q.pagesize*(q.pagenum-1))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ func (r *TursoChatRepository) ListChats(userID string, teamID string, page int)
|
||||
teamID,
|
||||
userID,
|
||||
),
|
||||
orm.WithOrder("_date_created desc"),
|
||||
orm.WithPagination(page, 50),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user