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

Report an error when pushing elements with already existing id to a resource. #77

Open
wzr1337 opened this issue Mar 15, 2018 · 0 comments

Comments

@wzr1337
Copy link
Owner

wzr1337 commented Mar 15, 2018

The following code snippet should fail

while(1) {
            let anim = new BehaviorSubject<AnimalElement>({
                lastUpdate: Date.now(),
                propertiesChanged: ["animalname", "genus", "genus"],
                data: {
                    uri: "/" + this.service.name.toLowerCase() + "/" + this.name.toLowerCase() + "/" + AnimalData.animalDataId,
                    id: AnimalData.animalDataId,
                    name: "OBD",
                    animalname: JSON.parse(data).animalName,
                    genus: JSON.parse(data).genus,
                    species: JSON.parse(data).species
                }
            });
            this.animalRenderer.push(anim);
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant