mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
feat: cert download
This commit is contained in:
@@ -6,7 +6,7 @@ import { IAccessService } from "../access";
|
||||
import { IEmailService } from "../service";
|
||||
import { IContext } from "../core";
|
||||
import { AxiosInstance } from "axios";
|
||||
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
export enum ContextScope {
|
||||
global,
|
||||
pipeline,
|
||||
@@ -81,6 +81,7 @@ export abstract class AbstractTaskPlugin implements ITaskPlugin {
|
||||
saveFile(filename: string, file: Buffer) {
|
||||
const filePath = this.ctx.fileStore.writeFile(filename, file);
|
||||
this._result.files!.push({
|
||||
id: uuidv4(),
|
||||
filename,
|
||||
path: filePath,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user