Closed species closed 8 years ago
When changing the design documents (changing the view from one index to another), after restarting the API with npm start, it displays the following error:
****** Document update conflict. ****** { method: 'POST', headers: { 'content-type': 'application/json', accept: 'application/json' }, uri: 'http://XXXXXX:XXXXXX@localhost:5984/poi', body: '{"_id":"_design/poi","language":"javascript","views":{"byId":{"map":"function(doc) {\\n if (doc.type === \'journal\') {\\n emit(doc._id, null )\\n }\\n}"},"currentVersionById":{"map":"function(doc) {\\n if (doc.type === \'journal\') {\\n emit(doc._id, {\'_id\': doc.current._id})\\n }\\n}"}},"rev":"1-0aea48eba69312de6c6d5e5743d2b344"}' }
When changing the design documents (changing the view from one index to another), after restarting the API with npm start, it displays the following error: