From af6537dc5f3244b93e5f02edc6db90265948a111 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Wed, 20 Nov 2024 23:54:52 +0800 Subject: [PATCH] fix: avoid multiple installation --- internal/types/models/curd/atomic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/types/models/curd/atomic.go b/internal/types/models/curd/atomic.go index c23eef0..fef51c2 100644 --- a/internal/types/models/curd/atomic.go +++ b/internal/types/models/curd/atomic.go @@ -29,7 +29,7 @@ func InstallPlugin( // check if already installed _, err := db.GetOne[models.PluginInstallation]( - db.Equal("plugin_unique_identifier", plugin_unique_identifier.String()), + db.Equal("plugin_id", plugin_unique_identifier.PluginID()), db.Equal("tenant_id", tenant_id), )