mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
add $ prefix for top param
Suggested by OneDrive API doc: > be consistent throughout the request with your usage of > the $ character on these arguments
This commit is contained in:
+1
-1
@@ -257,7 +257,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||||||
params: {
|
params: {
|
||||||
...{
|
...{
|
||||||
select: 'name,size,id,lastModifiedDateTime,folder,file,video,image',
|
select: 'name,size,id,lastModifiedDateTime,folder,file,video,image',
|
||||||
top: siteConfig.maxItems,
|
$top: siteConfig.maxItems,
|
||||||
},
|
},
|
||||||
...(next ? { $skipToken: next } : {}),
|
...(next ? { $skipToken: next } : {}),
|
||||||
...(sort ? { $orderby: sort } : {}),
|
...(sort ? { $orderby: sort } : {}),
|
||||||
|
|||||||
Reference in New Issue
Block a user