tango-app-api-audit 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -726,9 +726,9 @@ export const mapFunction = async ( chunk, filter ) => {
|
|
|
726
726
|
export async function workSpace( req, res ) {
|
|
727
727
|
try {
|
|
728
728
|
const inputData = req.query;
|
|
729
|
-
const limit = inputData.limit || 10;
|
|
729
|
+
const limit = Number( inputData.limit ) || 10;
|
|
730
730
|
const offset = inputData.offset ?
|
|
731
|
-
( inputData.offset - 1 ) *
|
|
731
|
+
( Number( inputData.offset ) - 1 ) * limit :
|
|
732
732
|
0;
|
|
733
733
|
const dateRange = await getUTC( new Date(), new Date() );
|
|
734
734
|
|