trilium/src/routes/api/cleanup.js
2018-11-08 11:14:13 +01:00

14 lines
No EOL
258 B
JavaScript

"use strict";
const sql = require('../../services/sql');
const log = require('../../services/log');
async function vacuumDatabase() {
await sql.execute("VACUUM");
log.info("Database has been vacuumed.");
}
module.exports = {
vacuumDatabase
};