convert sendUrl number -> boolean in toPublicJSON

This commit is contained in:
Ryo Hanafusa
2024-10-27 08:18:46 +00:00
parent 9af201924f
commit 2fb3638bd7
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ class Monitor extends BeanModel {
let obj = {
id: this.id,
name: this.name,
sendUrl: this.sendUrl,
sendUrl: !!this.sendUrl,
type: this.type,
};