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:
myl7
2022-07-23 14:38:33 +00:00
parent 2d2beadbba
commit 303bea15fd
+1 -1
View File
@@ -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 } : {}),