修复校验任务幂等键并更新双版本数据库回归进度
This commit is contained in:
1 parent
24a9683c43
commit
4ab3f93beb
6 files changed
+92
-11
No files matched your search
@@ -590,7 +590,8 @@ export function useDashboard() {
|
||||
const options = { method: "POST" };
|
||||
if (action === "issue" || action === "deploy" || action === "certificate/validate") {
|
||||
const suffix = crypto.randomUUID ? crypto.randomUUID() : createRandomSuffix();
|
||||
options.headers = { "Idempotency-Key": `${action}-${item.id}-${suffix}` };
|
||||
const prefix = action === "certificate/validate" ? "certificate-validate" : action;
|
||||
options.headers = { "Idempotency-Key": `${prefix}-${item.id}-${suffix}` };
|
||||
}
|
||||
const response = await fetchAdmin(`/api/v1/domains/${item.id}/${action}`, options);
|
||||
const result = await response.json().catch(() => ({}));
|
||||
|
||||
Reference in new issue
Block a user