mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
8a92054c2b
* 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>
18 lines
372 B
JavaScript
18 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;
|