chore: separate DBresponse classes
This commit is contained in:
parent
048b42f6cd
commit
f6ec954c6f
4 changed files with 54 additions and 47 deletions
20
scripts/response/activity.JS
Normal file
20
scripts/response/activity.JS
Normal file
|
@ -0,0 +1,20 @@
|
|||
const DBParser = require(`./parser.JS`);
|
||||
|
||||
class Activity extends DBParser {
|
||||
/*
|
||||
Modify user information.
|
||||
|
||||
@param {Object} ENTRY the selected entry, or the entries
|
||||
*/
|
||||
constructor(ENTRY) {
|
||||
super(DATA, {
|
||||
"_id": "ID",
|
||||
"username": "username",
|
||||
"description": "description",
|
||||
"duration": "duration",
|
||||
"date": "date"
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Activity;
|
Loading…
Add table
Add a link
Reference in a new issue