mirror of
https://github.com/aljazceru/lnd-manageJ.git
synced 2026-01-22 07:24:23 +01:00
fiq jq issue, use string instead of long
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user