@peers-app/peers-sdk 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -113,8 +113,8 @@ let ConsoleLogsTable = (() => {
|
|
|
113
113
|
}
|
|
114
114
|
if (ds instanceof orm_1.SQLDataSource) {
|
|
115
115
|
const db = ds.db;
|
|
116
|
-
await db.exec(`delete from ConsoleLogs where timestamp < $timestamp`, { timestamp: cutoffTimestamp });
|
|
117
|
-
console.log(`bulk deleted ${count} logs`);
|
|
116
|
+
const result = await db.exec(`delete from ConsoleLogs where timestamp < $timestamp`, { timestamp: cutoffTimestamp });
|
|
117
|
+
console.log(`bulk deleted ${count} logs, changes: ${result.changes}`);
|
|
118
118
|
}
|
|
119
119
|
else {
|
|
120
120
|
const cursor = this.cursor({ timestamp: { $lt: cutoffTimestamp } }, { sortBy: ['-timestamp'] });
|