Commit ·
8916bf2
1
Parent(s): f9fc8b0
feature(#137): updated auto task module...
Browse files
Extension/src/pages/Panel/Panel.jsx
CHANGED
|
@@ -289,7 +289,11 @@ const Panel = () => {
|
|
| 289 |
// delete database of firebase when finish auto task
|
| 290 |
data?.map(item => {
|
| 291 |
if (item.hasOwnProperty('command') && item.command.name === 'finish') {
|
| 292 |
-
deleteRtdInFirebase(referenceUrl)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 293 |
}
|
| 294 |
})
|
| 295 |
}, (error) => {
|
|
|
|
| 289 |
// delete database of firebase when finish auto task
|
| 290 |
data?.map(item => {
|
| 291 |
if (item.hasOwnProperty('command') && item.command.name === 'finish') {
|
| 292 |
+
deleteRtdInFirebase(referenceUrl).then(() => {
|
| 293 |
+
addMessage("Task is successfully completed!", false)
|
| 294 |
+
}).catch(err => {
|
| 295 |
+
console.error((err))
|
| 296 |
+
})
|
| 297 |
}
|
| 298 |
})
|
| 299 |
}, (error) => {
|