dependabot[bot] on npm_and_yarn
Bump json5 from 1.0.1 to 1.0.2 … (compare)
dependabot[bot] on npm_and_yarn
Bump qs and body-parser Bumps … (compare)
dependabot[bot] on npm_and_yarn
Bump decode-uri-component from … (compare)
dependabot[bot] on npm_and_yarn
Bump engine.io and karma Bumps… (compare)
dependabot[bot] on npm_and_yarn
Bump loader-utils from 1.2.3 to… (compare)
dependabot[bot] on npm_and_yarn
I'm using vue, I write this code on the app.vue and I'm using the hot reload, any time that some change is detected the app is reloaded..
CarbonService.createDocument: function(carbon, rootPath, document, slug ){
return carbon.documents.createChild( "/"+rootPath, document, slug );
}
let carbon = CarbonService.init();
let something = {};
let slug = "users";
CarbonService.createDocument(carbon, "/", something, slug).then(
( [ persistedProject, response ] ) => {
console.log( something === persistedProject ); // true
console.log( something.id ); // document's URI
}
).catch( console.error );
I run the script to create a document and I wait to see on the browser console the log of true and document URI, after that I'm going to my code again and change the slug variable to this:
CarbonService.createDocument: function(carbon, rootPath, document, slug ){
return carbon.documents.createChild( "/"+rootPath, document, slug );
}
let carbon = CarbonService.init();
let something = {};
let slug = "roles";
CarbonService.createDocument(carbon, "/", something, slug).then(
( [ persistedProject, response ] ) => {
console.log( something === persistedProject ); // true
console.log( something.id ); // document's URI
}
).catch( console.error );
the app is reloaded and run the script again, and is there where I see the 409 error on the browser console.
//
"/"+rootPath
docker stop <container-name>
<carbon-directory>/data/zookeeper
docker start <container-name