소스 검색

feat: add remote declaration support for plugin installation

Yeuoly 5 달 전
부모
커밋
10e3d5d51e
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      internal/types/models/curd/atomic.go

+ 4 - 0
internal/types/models/curd/atomic.go

@@ -54,6 +54,10 @@ func InstallPlugin(
 				Refers:                 1,
 			}
 
+			if install_type == plugin_entities.PLUGIN_RUNTIME_TYPE_REMOTE {
+				plugin.RemoteDeclaration = *declaration
+			}
+
 			err := db.Create(plugin, tx)
 			if err != nil {
 				return err