[#166] fixed api preview examples

This commit is contained in:
Gani Georgiev
2022-07-19 19:41:03 +03:00
parent 66b317f01c
commit 8a08a4764d
13 changed files with 56 additions and 82 deletions

View File

@@ -63,14 +63,11 @@
const client = new PocketBase("${ApiClient.baseUrl}");
...
const data = { ... };
client.Records.update("${collection?.name}", "RECORD_ID", data)
.then(function (record) {
// success...
}).catch(function (error) {
// error...
});
const record = await client.Records.update("${collection?.name}", "RECORD_ID", data);
`,
},
];