This commit is contained in:
tamaina 2024-02-29 21:18:46 +00:00
parent a1e6cb02b8
commit fc20ef0181
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
const res = [] as [string, number][]; const res = [] as [string, number][];
for (const job of jobs) { for (const job of jobs) {
const host = new URL(job.data.signature.keyId).host; const signature = 'version' in job.data.signature ? job.data.signature.value : job.data.signature;
const host = new URL(signature.keyId).host;
if (res.find(x => x[0] === host)) { if (res.find(x => x[0] === host)) {
res.find(x => x[0] === host)![1]++; res.find(x => x[0] === host)![1]++;
} else { } else {