Doesn't add records into PouchDB when used same function over again
问题 I'm trying to create a database with "users" and their data in it. Strangely it doesn't put() new variables in it when I try to for the third time. To do all this I create a local database dblocal and replicate this DB to the remote db called dbremote . At first I create a document with one variable. function newuser() { if (window.document.consent_form.consent_to_share.value) { var id = "p" + Date.now() + "-" + Math.floor(Math.random() * 10000); var dblocal = new PouchDB(id); var