chore: separate DBresponse classes

This commit is contained in:
buzz-lightsnack-2007 2025-04-07 20:49:39 +08:00
parent 048b42f6cd
commit f6ec954c6f
4 changed files with 54 additions and 47 deletions

17
scripts/response/log.JS Normal file
View file

@ -0,0 +1,17 @@
const DBParser = require(`./parser.JS`)
DBParser.Log = class Log extends DBParser {
/*
Clean the log information.
@param {Object} ENTRY the selected entry, or the entries
*/
constructor(ENTRY) {
super(ENTRY, {
"_id": "ID",
"username": "name",
"count": "count",
"log": "activities"
});
};
}