mirror of
https://github.com/certd/certd.git
synced 2026-06-30 00:07:37 +08:00
chore: acme账号改为必填项
This commit is contained in:
@@ -99,13 +99,13 @@ export class DnsPersistRecordService extends BaseService<DnsPersistRecordEntity>
|
||||
async getAcmeAccount(req: DnsPersistRecordBuildReq & { userId: number; projectId?: number }) {
|
||||
const accessId = req.acmeAccountAccessId || req.commonAcmeAccountAccessId;
|
||||
if (!accessId) {
|
||||
throw new Error("请选择ACME账号授权");
|
||||
throw new Error("请选择ACME账号");
|
||||
}
|
||||
let access: any;
|
||||
if (req.commonAcmeAccountAccessId) {
|
||||
const entity = await this.accessService.info(accessId);
|
||||
if (!entity || entity.userId !== 0 || entity.type !== "acmeAccount") {
|
||||
throw new Error("公共ACME账号授权不存在");
|
||||
throw new Error("公共ACME账号不存在");
|
||||
}
|
||||
access = await this.accessService.getAccessById(accessId, false);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user