feat: update import type

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2020-06-02 18:12:05 +08:00
parent 5b11be11da
commit 476f7acc39

View File

@ -210,7 +210,7 @@ export class MiaoScriptPackageManager extends interfaces.Plugin {
if (!process.env.AccessToken) { return this.i18n(sender, 'deploy.token.not.exists') } if (!process.env.AccessToken) { return this.i18n(sender, 'deploy.token.not.exists') }
this.taskManager.create(() => { this.taskManager.create(() => {
if (this.checkPlugin(sender, name)) { if (this.checkPlugin(sender, name)) {
let plugin: interfaces.Plugin = this.pluginManager.getPlugins().get(name); let plugin: pluginApi.Plugin = this.pluginManager.getPlugins().get(name);
let result = http.post("http://ms.yumc.pw/api/plugin/deploy?access_token=" + process.env.AccessToken, { let result = http.post("http://ms.yumc.pw/api/plugin/deploy?access_token=" + process.env.AccessToken, {
name, name,
author: plugin.description.author, author: plugin.description.author,