From 9784e93dc781eca8b26f03d070fa8ca306ca8b59 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 17 May 2024 10:45:12 +0200 Subject: [PATCH] Don't import all lodash --- server/core/helpers/geo-ip.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/core/helpers/geo-ip.ts b/server/core/helpers/geo-ip.ts index dde2949b7..8e2351e53 100644 --- a/server/core/helpers/geo-ip.ts +++ b/server/core/helpers/geo-ip.ts @@ -1,12 +1,12 @@ +import { CONFIG } from '@server/initializers/config.js' import { pathExists } from 'fs-extra/esm' import { writeFile } from 'fs/promises' +import throttle from 'lodash-es/throttle.js' import maxmind, { CityResponse, CountryResponse, Reader } from 'maxmind' import { join } from 'path' -import { CONFIG } from '@server/initializers/config.js' +import { isArray } from './custom-validators/misc.js' import { logger, loggerTagsFactory } from './logger.js' import { isBinaryResponse, peertubeGot } from './requests.js' -import { isArray } from './custom-validators/misc.js' -import { throttle } from 'lodash-es' const lTags = loggerTagsFactory('geo-ip')