Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: n2k response in clear & silence Notification #5

Merged
merged 5 commits into from
Feb 8, 2020

Conversation

cmotelet
Copy link
Contributor

@cmotelet cmotelet commented Feb 6, 2020

No description provided.

index.js Outdated
existing.method = method

var existing = app.getSelfPath(npath)
if (typeof existing.value === 'undefined') existing.value = []
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem right. Should not be an array. Following statements will fail. I think if it's undefined just return, nothing to do here?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still a problem

index.js Outdated

existing.timestamp = (new Date()).toISOString()

const delta = {
context: "vessels." + app.selfId,
updates: [
{
source: {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you setting source? Not sure this will even get through?

@sbender9 sbender9 merged commit 5b2bde6 into sbender9:master Feb 8, 2020
@cmotelet cmotelet deleted the fixN2K branch February 8, 2020 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants