Don't import all lodash

pull/6346/head
Chocobozzz 2024-05-17 10:45:12 +02:00
parent 59c18bb1a1
commit 9784e93dc7
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
import { CONFIG } from '@server/initializers/config.js'
import { pathExists } from 'fs-extra/esm' import { pathExists } from 'fs-extra/esm'
import { writeFile } from 'fs/promises' import { writeFile } from 'fs/promises'
import throttle from 'lodash-es/throttle.js'
import maxmind, { CityResponse, CountryResponse, Reader } from 'maxmind' import maxmind, { CityResponse, CountryResponse, Reader } from 'maxmind'
import { join } from 'path' 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 { logger, loggerTagsFactory } from './logger.js'
import { isBinaryResponse, peertubeGot } from './requests.js' import { isBinaryResponse, peertubeGot } from './requests.js'
import { isArray } from './custom-validators/misc.js'
import { throttle } from 'lodash-es'
const lTags = loggerTagsFactory('geo-ip') const lTags = loggerTagsFactory('geo-ip')