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!

some fix

Maksim Mrugefe1d5722c65
diff --git a/src/marketplace/extensions/extensions.service.ts b/src/marketplace/extensions/extensions.service.ts
index efc612071..c03bcc8ba 100644
--- a/src/marketplace/extensions/extensions.service.ts
+++ b/src/marketplace/extensions/extensions.service.ts
@@ -22,7 +22,6 @@ export class ExtensionsService {
) {}
async findOne(options: FindOneOptions<Extension>): Promise<Extension> {
- console.log('findOne', options)
return await this.extensionRepository.findOne({ ...options })
}
diff --git a/src/user/user.service.ts b/src/user/user.service.ts
index ae2bce1e7..9cbcf9b4d 100644
--- a/src/user/user.service.ts
+++ b/src/user/user.service.ts
@@ -6,7 +6,7 @@ import * as _size from 'lodash/size'
import * as _omit from 'lodash/omit'
import { Pagination, PaginationOptionsInterface } from '../common/pagination'
-import { User, UserType } from './entities/user.entity'
+import { User } from './entities/user.entity'
import { UserProfileDTO } from './dto/user.dto'
@Injectable()
@@ -38,15 +38,6 @@ export class UserService {
return this.usersRepository.update({ id }, update)
}
- // // add function isAdmin
- // isAdmin(id: string): boolean {
- // const user: Promise<User> = this.findOne(id)
- // if (user.roles.includes(UserType.ADMIN)) {
- // return true
- // }
- // return false
- // }
-
async updateByEmail(
email: string,
update: Record<string, unknown>,