docs(subsUnion): note why legacy telegram subs are skipped, not errors
All checks were successful
build-image / build (push) Successful in 11m55s
All checks were successful
build-image / build (push) Successful in 11m55s
This commit is contained in:
parent
3ac580f246
commit
3d52e2f709
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ const calcUnionAsync = async (subs, decorated) => {
|
|||
{ units: 'kilometers', steps: 144 }
|
||||
));
|
||||
} else {
|
||||
// Expected for old telegram subscriptions predating the distance field
|
||||
// (e.g. distance: null) — logged, not an error, safe to skip.
|
||||
console.info(`Wrong element to do union ${JSON.stringify(osub)}`);
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue