📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
lint:fix
Blue Moused1bd1a1bd8a8
diff --git a/apps/production/src/analytics/analytics.controller.ts b/apps/production/src/analytics/analytics.controller.tsindex 07750370a..e3d9ee57b 100644--- a/apps/production/src/analytics/analytics.controller.ts+++ b/apps/production/src/analytics/analytics.controller.ts@@ -813,9 +813,8 @@ export class AnalyticsController {const result = {}const keyCountPromises = _map(pidsArray, async currentPID => {- result[currentPID] = await this.analyticsService.getOnlineUserCount(- currentPID,- )+ result[currentPID] =+ await this.analyticsService.getOnlineUserCount(currentPID)})await Promise.all(keyCountPromises).catch(reason => {diff --git a/apps/production/src/auth/auth.service.ts b/apps/production/src/auth/auth.service.tsindex 21b4a3455..9dc8e38ef 100644--- a/apps/production/src/auth/auth.service.ts+++ b/apps/production/src/auth/auth.service.ts@@ -1,3 +1,4 @@+import { createHash } from 'crypto'import {Injectable,InternalServerErrorException,@@ -10,7 +11,6 @@ import axios from 'axios'import { genSalt, hash, compare } from 'bcrypt'import { getCountry } from 'countries-and-timezones'import { Auth } from 'googleapis'-import { createHash } from 'crypto'import * as dayjs from 'dayjs'import { UAParser } from 'ua-parser-js'import * as _pick from 'lodash/pick'diff --git a/apps/production/src/captcha/captcha.service.ts b/apps/production/src/captcha/captcha.service.tsindex eae407edf..673e3c941 100644--- a/apps/production/src/captcha/captcha.service.ts+++ b/apps/production/src/captcha/captcha.service.ts@@ -338,9 +338,8 @@ export class CaptchaService {throw new Error('No JWT captcha cookie')}- const tokenCaptcha: TokenCaptcha = await this.decryptTokenCaptcha(- tokenCookie,- )+ const tokenCaptcha: TokenCaptcha =+ await this.decryptTokenCaptcha(tokenCookie)return this.canPassWithoutVerification(tokenCaptcha)}diff --git a/apps/production/src/common/utils.ts b/apps/production/src/common/utils.tsindex 62ec58874..e0fc70b73 100644--- a/apps/production/src/common/utils.ts+++ b/apps/production/src/common/utils.ts@@ -1,6 +1,6 @@-import { Reader, CityResponse } from 'maxmind'import * as path from 'path'import * as fs from 'fs'+import { Reader, CityResponse } from 'maxmind'import { HttpException } from '@nestjs/common'import { hash } from 'blake3'import timezones from 'countries-and-timezones'diff --git a/apps/production/src/configs/i18n.config.ts b/apps/production/src/configs/i18n.config.tsindex 0288616c1..ec3b3a87d 100644--- a/apps/production/src/configs/i18n.config.ts+++ b/apps/production/src/configs/i18n.config.ts@@ -1,6 +1,6 @@+import { join } from 'path'import { ConfigModule, ConfigService } from '@nestjs/config'import { AcceptLanguageResolver, I18nAsyncOptions } from 'nestjs-i18n'-import { join } from 'path'export const getI18nConfig = (): I18nAsyncOptions => ({imports: [ConfigModule],diff --git a/apps/production/src/mailer/mailer.service.ts b/apps/production/src/mailer/mailer.service.tsindex 2de272010..9ef7a69b9 100644--- a/apps/production/src/mailer/mailer.service.ts+++ b/apps/production/src/mailer/mailer.service.ts@@ -1,8 +1,8 @@+import fs = require('fs')+import path = require('path')import { Injectable } from '@nestjs/common'import * as postmark from 'postmark'import handlebars from 'handlebars'-import fs = require('fs')-import path = require('path')import { LetterTemplate } from './letter'import { AppLoggerService } from '../logger/logger.service'import { SEND_WARNING_AT_PERC } from '../common/constants'diff --git a/apps/production/src/marketplace/cdn/cdn.service.ts b/apps/production/src/marketplace/cdn/cdn.service.tsindex 2c25f47af..94c9689d6 100644--- a/apps/production/src/marketplace/cdn/cdn.service.ts+++ b/apps/production/src/marketplace/cdn/cdn.service.ts@@ -1,8 +1,8 @@-import { Injectable, InternalServerErrorException } from '@nestjs/common'-import { ConfigService } from '@nestjs/config'import { createReadStream } from 'fs'import { unlink, writeFile } from 'fs/promises'import { tmpdir } from 'os'+import { ConfigService } from '@nestjs/config'+import { Injectable, InternalServerErrorException } from '@nestjs/common'import * as FormData from 'form-data'import { HttpService } from '@nestjs/axios'diff --git a/apps/production/src/marketplace/extensions/extensions.controller.ts b/apps/production/src/marketplace/extensions/extensions.controller.tsindex 552708b78..a08f45607 100644--- a/apps/production/src/marketplace/extensions/extensions.controller.ts+++ b/apps/production/src/marketplace/extensions/extensions.controller.ts@@ -136,9 +136,8 @@ export class ExtensionsController {@Get()async getExtensions(@Query() queries: GetAllExtensionsQueries) {// eslint-disable-next-line prefer-const- let [extensions, count] = await this.extensionsService.getExtensions(- queries,- )+ let [extensions, count] =+ await this.extensionsService.getExtensions(queries)extensions = _map(extensions, extension => {extension.usersQuantity = _size(extension.users)@@ -307,9 +306,8 @@ export class ExtensionsController {@Get('search')async searchExtension(@Query() queries: SearchExtensionQueries) {// eslint-disable-next-line prefer-const- let [extensions, count] = await this.extensionsService.searchExtension(- queries,- )+ let [extensions, count] =+ await this.extensionsService.searchExtension(queries)extensions = _map(extensions, extension => {extension.usersQuantity = _size(extension.users)diff --git a/apps/production/src/project/project.service.ts b/apps/production/src/project/project.service.tsindex d445ba635..ae48620ee 100644--- a/apps/production/src/project/project.service.ts+++ b/apps/production/src/project/project.service.ts@@ -1,3 +1,4 @@+import * as net from 'net'import {ForbiddenException,Injectable,@@ -6,7 +7,6 @@ import {InternalServerErrorException,ConflictException,} from '@nestjs/common'-import * as net from 'net'import { InjectRepository } from '@nestjs/typeorm'import { Repository } from 'typeorm'import { customAlphabet } from 'nanoid'@@ -718,9 +718,8 @@ export class ProjectService {clickhouse.query(countCaptchaQuery).toPromise(),]- const [rawTraffic, rawCustomEvents, rawCaptcha] = await Promise.all(- promises,- )+ const [rawTraffic, rawCustomEvents, rawCaptcha] =+ await Promise.all(promises)const traffic = rawTraffic[0]['count()']const customEvents = rawCustomEvents[0]['count()']diff --git a/apps/production/src/webhook/webhook.service.ts b/apps/production/src/webhook/webhook.service.tsindex 859560823..8b8eef255 100644--- a/apps/production/src/webhook/webhook.service.ts+++ b/apps/production/src/webhook/webhook.service.ts@@ -1,10 +1,10 @@/* eslint-disable no-param-reassign, no-prototype-builtins */+import * as crypto from 'crypto'import {Injectable,BadRequestException,ForbiddenException,} from '@nestjs/common'-import * as crypto from 'crypto'import * as Serialize from 'php-serialize'import * as _includes from 'lodash/includes'import * as _keys from 'lodash/keys'diff --git a/apps/selfhosted/src/analytics/analytics.controller.ts b/apps/selfhosted/src/analytics/analytics.controller.tsindex 34740dfba..9e3669eb9 100644--- a/apps/selfhosted/src/analytics/analytics.controller.ts+++ b/apps/selfhosted/src/analytics/analytics.controller.ts@@ -681,9 +681,8 @@ export class AnalyticsController {const result = {}const keyCountPromises = _map(pidsArray, async currentPID => {- result[currentPID] = await this.analyticsService.getOnlineUserCount(- currentPID,- )+ result[currentPID] =+ await this.analyticsService.getOnlineUserCount(currentPID)})await Promise.all(keyCountPromises).catch(reason => {diff --git a/apps/selfhosted/src/configs/i18n.config.ts b/apps/selfhosted/src/configs/i18n.config.tsindex 0288616c1..ec3b3a87d 100644--- a/apps/selfhosted/src/configs/i18n.config.ts+++ b/apps/selfhosted/src/configs/i18n.config.ts@@ -1,6 +1,6 @@+import { join } from 'path'import { ConfigModule, ConfigService } from '@nestjs/config'import { AcceptLanguageResolver, I18nAsyncOptions } from 'nestjs-i18n'-import { join } from 'path'export const getI18nConfig = (): I18nAsyncOptions => ({imports: [ConfigModule],diff --git a/apps/selfhosted/src/project/project.service.ts b/apps/selfhosted/src/project/project.service.tsindex 73ca5bdd2..b29891b04 100644--- a/apps/selfhosted/src/project/project.service.ts+++ b/apps/selfhosted/src/project/project.service.ts@@ -1,3 +1,4 @@+import * as net from 'net'import {ForbiddenException,Injectable,@@ -6,7 +7,6 @@ import {InternalServerErrorException,ConflictException,} from '@nestjs/common'-import * as net from 'net'import { customAlphabet } from 'nanoid'import * as _isEmpty from 'lodash/isEmpty'import * as _isString from 'lodash/isString'