mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-09-07 09:51:57 +00:00
![Matthew Nickson](/assets/img/avatar_default.png)
* Added JSDoc to eslint rules Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com> * Fixed JSDoc eslint errors Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com> * Update the check-linters workflow to Node.js 20 --------- Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com> Co-authored-by: Louis Lam <louislam@users.noreply.github.com>
19 lines
372 B
JavaScript
19 lines
372 B
JavaScript
const { BeanModel } = require("redbean-node/dist/bean-model");
|
|
|
|
class Tag extends BeanModel {
|
|
|
|
/**
|
|
* Return an object that ready to parse to JSON
|
|
* @returns {object} Object ready to parse
|
|
*/
|
|
toJSON() {
|
|
return {
|
|
id: this._id,
|
|
name: this._name,
|
|
color: this._color,
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = Tag;
|