You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2023/06/15 03:15:47 UTC
[incubator-devlake] branch main updated: fix: missing raw layer tables (#5491)
This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 29c43b2e7 fix: missing raw layer tables (#5491)
29c43b2e7 is described below
commit 29c43b2e7aa0bbce48d1e309e42bf1b2e23f361b
Author: Liang Zhang <li...@merico.dev>
AuthorDate: Thu Jun 15 11:15:42 2023 +0800
fix: missing raw layer tables (#5491)
---
backend/helpers/pluginhelper/api/api_extractor.go | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/backend/helpers/pluginhelper/api/api_extractor.go b/backend/helpers/pluginhelper/api/api_extractor.go
index 2a4c89ba6..5c8e6cfdd 100644
--- a/backend/helpers/pluginhelper/api/api_extractor.go
+++ b/backend/helpers/pluginhelper/api/api_extractor.go
@@ -64,7 +64,9 @@ func (extractor *ApiExtractor) Execute() errors.Error {
// load data from database
db := extractor.args.Ctx.GetDal()
logger := extractor.args.Ctx.GetLogger()
-
+ if !db.HasTable(extractor.table) {
+ return nil
+ }
clauses := []dal.Clause{
dal.From(extractor.table),
dal.Where("params = ?", extractor.params),