mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-07 06:47:27 +02:00
use rowid as collections order field
This commit is contained in:
1 parent
902e07e724
commit
fac0d5b899
1 file changed
+1
-1
@@ -38,7 +38,7 @@ func (app *BaseApp) FindAllCollections(collectionTypes ...string) ([]*Collection
|
|||||||
q.AndWhere(dbx.In("type", list.ToInterfaceSlice(types)...))
|
q.AndWhere(dbx.In("type", list.ToInterfaceSlice(types)...))
|
||||||
}
|
}
|
||||||
|
|
||||||
err := q.OrderBy("created ASC").All(&collections)
|
err := q.OrderBy("rowid ASC").All(&collections)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user