mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-16 11:08:14 +02:00
use app.pb.logs.truncate()
This commit is contained in:
1 parent
c2cbd9707f
commit
252358e036
11 files changed
+116
-99
No files matched your search
@@ -93,8 +93,7 @@ function logsSettingsModal(modalSettings) {
|
||||
data.isDeleting = true;
|
||||
|
||||
try {
|
||||
// @todo replace with SDK method
|
||||
await app.pb.send("/api/logs", { method: "DELETE" });
|
||||
await app.pb.logs.truncate();
|
||||
|
||||
modalSettings.ondelete?.();
|
||||
|
||||
|
||||
Reference in new issue
Block a user