!UNSTABLE 优化数据库结构,为domain功能准备

This commit is contained in:
masnn committed 2020-05-29 13:05:52 +08:00
1 parent 7d27e56018
commit fff2172c38
40 files changed
+1411 -1012

No files matched your search

+2 -2
View File
@@ -15,10 +15,10 @@ function del(ip) {
return coll.deleteOne({ _id: ip });
}
function index() {
function ensureIndexes() {
return coll.createIndex('expireAt', { expireAfterSeconds: 0 });
}
global.Hydro.model.blacklist = module.exports = {
add, get, del, index,
add, get, del, ensureIndexes,
};