mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 21:56:12 +08:00 
			
		
		
		
	* 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;
 |