增加初始化订阅任务

This commit is contained in:
whyour
2022-05-18 23:30:59 +08:00
parent d2c2ea8d3b
commit 460a1750f4
6 changed files with 24 additions and 7 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ export default class SubscriptionService {
return { url, host };
}
private handleTask(doc: Subscription, needCreate = true, needAddKey = true) {
public handleTask(doc: Subscription, needCreate = true, needAddKey = true) {
const { url, host } = this.formatUrl(doc);
if (doc.type === 'private-repo' && doc.pull_type === 'ssh-key') {
if (needAddKey) {