mirror of
https://github.com/certd/certd.git
synced 2026-07-16 18:57:32 +08:00
perf: 优化vke keubconfig获取方式,改成先查询,如果没有再创建临时config
This commit is contained in:
@@ -95,6 +95,10 @@ export abstract class BaseNotification implements INotification {
|
||||
}
|
||||
|
||||
async doSend(body: NotificationBody) {
|
||||
if (body.content) {
|
||||
const content = body.content?.replace(/\n/g, " \n");
|
||||
body.content = content;
|
||||
}
|
||||
return await this.send(body);
|
||||
}
|
||||
abstract send(body: NotificationBody): Promise<void>;
|
||||
|
||||
Reference in New Issue
Block a user