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!

better types

Blue Moused83135575da6
diff --git a/backend/apps/cloud/src/feature-flag/feature-flag.service.ts b/backend/apps/cloud/src/feature-flag/feature-flag.service.ts
index a833b3258..cbfeedad5 100644
--- a/backend/apps/cloud/src/feature-flag/feature-flag.service.ts
+++ b/backend/apps/cloud/src/feature-flag/feature-flag.service.ts
@@ -6,6 +6,7 @@ import {
Repository,
EntityManager,
DeleteResult,
+ UpdateResult,
} from 'typeorm'
import { Pagination, PaginationOptionsInterface } from '../common/pagination'
import { FeatureFlag } from './entity/feature-flag.entity'
@@ -105,7 +106,7 @@ export class FeatureFlagService {
id: string,
flagData: Partial<FeatureFlag>,
manager?: EntityManager,
- ): Promise<any> {
+ ): Promise<UpdateResult> {
const repository = manager
? manager.getRepository(FeatureFlag)
: this.featureFlagRepository