pass dc/partition when normalizing peerings

This commit is contained in:
Michael Klein 2022-10-11 15:02:22 +02:00 committed by Michael Klein
parent 6793f82d01
commit 0afe8c14ee
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ export default class PeerService extends RepositoryService {
},
body: body.map((item) => {
return cache(
normalizePeerPayload(item),
normalizePeerPayload(item, dc, partition),
(uri) => uri`peer:///${partition}/${ns}/${dc}/peer/${item.Name}`
);
}),
@ -92,7 +92,7 @@ export default class PeerService extends RepositoryService {
uri: uri,
},
body: cache(
normalizePeerPayload(body),
normalizePeerPayload(body, dc, partition),
(uri) => uri`peer:///${partition}/${ns}/${dc}/peer/${body.Name}`
),
};