mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 05:32:01 +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: {
|
||||
...{
|
||||
select: 'name,size,id,lastModifiedDateTime,folder,file,video,image',
|
||||
top: siteConfig.maxItems,
|
||||
$top: siteConfig.maxItems,
|
||||
},
|
||||
...(next ? { $skipToken: next } : {}),
|
||||
...(sort ? { $orderby: sort } : {}),
|
||||
|
||||
Reference in New Issue
Block a user