Update server/model/monitor.js

Co-authored-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
Gero Gerke 2023-01-10 10:41:18 +01:00 committed by GitHub
parent f33d09918d
commit 3dbc32b225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,7 @@ class Monitor extends BeanModel {
/**
* Return an object that ready to parse to JSON for public
* Only show necessary data to public
* @param {boolean} [includeStatus = false] Should the JSON include the status
* @returns {Object}
*/
async toPublicJSON(showTags = false, includeStatus = false) {