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 Mouseca4d18e442aa
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 566b2095a..a833b3258 100644
--- a/backend/apps/cloud/src/feature-flag/feature-flag.service.ts
+++ b/backend/apps/cloud/src/feature-flag/feature-flag.service.ts
@@ -5,6 +5,7 @@ import {
FindOneOptions,
Repository,
EntityManager,
+ DeleteResult,
} from 'typeorm'
import { Pagination, PaginationOptionsInterface } from '../common/pagination'
import { FeatureFlag } from './entity/feature-flag.entity'
@@ -111,7 +112,7 @@ export class FeatureFlagService {
return repository.update(id, flagData)
}
- async delete(id: string): Promise<any> {
+ async delete(id: string): Promise<DeleteResult> {
return this.featureFlagRepository.delete(id)
}