diff --git a/account/src/lib/couch-db.ts b/account/src/lib/couch-db.ts index 73c0d0c..830552d 100644 --- a/account/src/lib/couch-db.ts +++ b/account/src/lib/couch-db.ts @@ -10,7 +10,7 @@ const feedbackDb = nano.db.use("feedback"); const userDbPrefix = "userdb-"; export async function addFeedback(feedback: any) { - await usersDb.insert(feedback); + await feedbackDb.insert(feedback); } export function updateLastLogin(user: T.LingdocsUser): T.LingdocsUser { diff --git a/test.http b/test.http new file mode 100644 index 0000000..48ce527 --- /dev/null +++ b/test.http @@ -0,0 +1,7 @@ +POST https://account.lingdocs.com/feedback HTTP/1.1 +content-type: application/json + +{ + "value": 4, + "feedback": "This is really great" +} \ No newline at end of file