fiq jq issue, use string instead of long

This commit is contained in:
Carsten Otto
2021-11-11 20:31:33 +01:00
parent 07d9c7c5f7
commit 2f8980db0f
3 changed files with 7 additions and 6 deletions

View File

@@ -26,9 +26,9 @@ public class NodeController {
}
@GetMapping("/open-channels")
public List<Long> getOpenChannelIds(@PathVariable Pubkey pubkey) {
public List<String> getOpenChannelIds(@PathVariable Pubkey pubkey) {
return nodeService.getOpenChannelIds(pubkey).stream()
.map(ChannelId::shortChannelId)
.map(ChannelId::toString)
.collect(Collectors.toList());
}
}