Remove old flatfile chandump storage
This commit is contained in:
parent
e3a9915b45
commit
106065184f
11 changed files with 42 additions and 312 deletions
|
|
@ -1,7 +1,5 @@
|
|||
var db = require("../database");
|
||||
var valid = require("../utilities").isValidChannelName;
|
||||
var fs = require("fs");
|
||||
var path = require("path");
|
||||
var Flags = require("../flags");
|
||||
var util = require("../utilities");
|
||||
import { createMySQLDuplicateKeyUpdate } from '../util/on-duplicate-key-update';
|
||||
|
|
@ -199,14 +197,6 @@ module.exports = {
|
|||
}
|
||||
});
|
||||
|
||||
fs.unlink(path.join(__dirname, "..", "..", "chandump", name),
|
||||
function (err) {
|
||||
if (err && err.code !== "ENOENT") {
|
||||
LOGGER.error("Deleting chandump failed:");
|
||||
LOGGER.error(err);
|
||||
}
|
||||
});
|
||||
|
||||
callback(err, !err);
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue