chore: separate DBresponse classes
This commit is contained in:
parent
048b42f6cd
commit
f6ec954c6f
4 changed files with 54 additions and 47 deletions
17
scripts/response/log.JS
Normal file
17
scripts/response/log.JS
Normal 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"
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue