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!

deleted ownerId for the extension

Yevhenii Kulisidi08695f23e360
diff --git a/src/marketplace/extensions/entities/extension.entity.ts b/src/marketplace/extensions/entities/extension.entity.ts
index 1b2f77b37..5a3d610d3 100644
--- a/src/marketplace/extensions/entities/extension.entity.ts
+++ b/src/marketplace/extensions/entities/extension.entity.ts
@@ -24,9 +24,6 @@ export class Extension {
@ManyToOne(() => User, user => user.ownedExtensions)
owner: User
- @Column()
- ownerId: string
-
@Column('varchar')
name: string
diff --git a/src/marketplace/extensions/extensions.service.ts b/src/marketplace/extensions/extensions.service.ts
index 0eeda5fc3..3d56456cd 100644
--- a/src/marketplace/extensions/extensions.service.ts
+++ b/src/marketplace/extensions/extensions.service.ts
@@ -177,7 +177,7 @@ export class ExtensionsService {
async createExtension(extension: CreateExtensionType) {
return await this.extensionRepository.save({
- ownerId: extension.ownerId,
+ owner: { id: extension.ownerId },
name: extension.name,
description: extension.description,
status: extension.extensionScript
@@ -221,7 +221,7 @@ export class ExtensionsService {
}
return await this.extensionRepository.findOne({
- where: { id: extensionId, ownerId: userId },
+ where: { id: extensionId, owner: { id: userId } },
})
}