Skip to content

📈 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!

fix linting issues

Blue Moused9ea2f0414a9
diff --git a/backend/apps/community/src/analytics/salt.service.ts b/backend/apps/community/src/analytics/salt.service.ts
index 393cd5db5..ee2e8d376 100644
--- a/backend/apps/community/src/analytics/salt.service.ts
+++ b/backend/apps/community/src/analytics/salt.service.ts
@@ -12,7 +12,7 @@ const REDIS_SALT_DAILY = 'salt:daily'
const REDIS_SALT_MONTHLY = 'salt:monthly'
const REDIS_CACHE_TTL = 600 // 10 minutes in seconds
-export type SaltRotationType = 'daily' | 'monthly'
+type SaltRotationType = 'daily' | 'monthly'
const getEndOfPeriod = (rotation: SaltRotationType): dayjs.Dayjs => {
const now = dayjs.utc()
diff --git a/backend/apps/community/src/common/utils.ts b/backend/apps/community/src/common/utils.ts
index 9eede6a72..c6f9ba5f8 100644
--- a/backend/apps/community/src/common/utils.ts
+++ b/backend/apps/community/src/common/utils.ts
@@ -1280,14 +1280,6 @@ const saveSaltClickhouse = async (saltData: ClickhouseSalt) => {
}
}
-const deleteSaltClickhouse = async (rotation: string) => {
- const query = `ALTER TABLE salt DELETE WHERE rotation = {rotation:String}`
- await clickhouse.command({
- query,
- query_params: { rotation },
- })
-}
-
export {
checkRateLimit,
createProjectClickhouse,
@@ -1339,5 +1331,4 @@ export {
// salt
getSaltClickhouse,
saveSaltClickhouse,
- deleteSaltClickhouse,
}
diff --git a/web/app/ui/Input.tsx b/web/app/ui/Input.tsx
index 5958127c0..d60b82319 100644
--- a/web/app/ui/Input.tsx
+++ b/web/app/ui/Input.tsx
@@ -60,7 +60,11 @@ const Input = ({
<Field as='div' className={className}>
{label || labelCorner ? (
<div className='mb-1 flex items-center justify-between gap-x-2'>
- {label ? <Label className='flex text-sm font-medium text-gray-900 dark:text-gray-200'>{label}</Label> : <span />}
+ {label ? (
+ <Label className='flex text-sm font-medium text-gray-900 dark:text-gray-200'>{label}</Label>
+ ) : (
+ <span />
+ )}
{labelCorner ? <span className='text-sm'>{labelCorner}</span> : null}
</div>
) : null}