in src/store/modules/topology.ts [316:333]
async getInstanceTopology() {
const { currentService, currentDestService } = useSelectorStore();
const serverServiceId = (currentService && currentService.id) || "";
const clientServiceId = (currentDestService && currentDestService.id) || "";
const duration = useAppStoreWithOut().durationTime;
if (!(serverServiceId && clientServiceId)) {
return new Promise((resolve) => resolve({}));
}
const res = await graphql.query("getInstanceTopology").params({
clientServiceId,
serverServiceId,
duration,
});
if (!res.errors) {
this.setInstanceTopology(res.data.topology);
}
return res;
},