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

View file

@ -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 } : {}),