oops on db

This commit is contained in:
adueck 2022-10-11 14:30:07 +05:00
parent 8275668b54
commit 271c2a88ab
2 changed files with 8 additions and 1 deletions

View File

@ -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 {

7
test.http Normal file
View File

@ -0,0 +1,7 @@
POST https://account.lingdocs.com/feedback HTTP/1.1
content-type: application/json
{
"value": 4,
"feedback": "This is really great"
}