Переглянути джерело

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