From ce30a0a49366549c38b910f8464eb4e4532ed9ce Mon Sep 17 00:00:00 2001 From: ngjaying Date: Fri, 1 Mar 2024 15:33:41 +0800 Subject: [PATCH] fix(service): delete schemaless func (#2660) Signed-off-by: Jiyong Huang --- internal/service/manager.go | 1 + internal/service/manager_test.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/internal/service/manager.go b/internal/service/manager.go index 54b45b2063..d68fc7073c 100644 --- a/internal/service/manager.go +++ b/internal/service/manager.go @@ -193,6 +193,7 @@ func (m *Manager) initFile(baseName string) error { } } } else { + info.Interfaces[name].Functions = []string{name} err := m.functionKV.Set(name, &functionContainer{ FuncName: name, ServiceName: serviceName, diff --git a/internal/service/manager_test.go b/internal/service/manager_test.go index 9b824b29b8..68afd8ce75 100644 --- a/internal/service/manager_test.go +++ b/internal/service/manager_test.go @@ -127,6 +127,9 @@ func TestInitByFiles(t *testing.T) { Schema: &schemaInfo{ Schemaless: true, }, + Functions: []string{ + "tsschemaless", + }, }, }, }