@opengis/gis 0.2.126 → 0.2.127
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
|
@@ -5,7 +5,7 @@ import mapnik from '../../../plugins/mapnik/funcs/mapnik.js';
|
|
|
5
5
|
const { GetStat } = mapnik();
|
|
6
6
|
|
|
7
7
|
export default async function mapnikStat({
|
|
8
|
-
params,
|
|
8
|
+
params,
|
|
9
9
|
}, reply) {
|
|
10
10
|
if (!config.mapnik?.server) {
|
|
11
11
|
return reply.status(400).send({ error: 'mapnik server address needed', code: 400 });
|
|
@@ -13,7 +13,6 @@ export default async function mapnikStat({
|
|
|
13
13
|
|
|
14
14
|
const stat = await GetStat({
|
|
15
15
|
period: params.period,
|
|
16
|
-
ttl: query.nocache ? '0' : undefined,
|
|
17
16
|
});
|
|
18
17
|
|
|
19
18
|
return reply.status(200).send(stat);
|