mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
[editor] Fix: Removing cooldown resulted in save error
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
36f9133cd5
commit
21f9f80f3d
1 changed files with 6 additions and 0 deletions
|
@ -870,14 +870,20 @@ export default {
|
||||||
|
|
||||||
if (obj.cooldown) {
|
if (obj.cooldown) {
|
||||||
obj.cooldown = this.fixDurationRepresentationToInt64(obj.cooldown)
|
obj.cooldown = this.fixDurationRepresentationToInt64(obj.cooldown)
|
||||||
|
} else {
|
||||||
|
delete obj.cooldown
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj.channel_cooldown) {
|
if (obj.channel_cooldown) {
|
||||||
obj.channel_cooldown = this.fixDurationRepresentationToInt64(obj.channel_cooldown)
|
obj.channel_cooldown = this.fixDurationRepresentationToInt64(obj.channel_cooldown)
|
||||||
|
} else {
|
||||||
|
delete obj.channel_cooldown
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj.user_cooldown) {
|
if (obj.user_cooldown) {
|
||||||
obj.user_cooldown = this.fixDurationRepresentationToInt64(obj.user_cooldown)
|
obj.user_cooldown = this.fixDurationRepresentationToInt64(obj.user_cooldown)
|
||||||
|
} else {
|
||||||
|
delete obj.user_cooldown
|
||||||
}
|
}
|
||||||
|
|
||||||
let promise = null
|
let promise = null
|
||||||
|
|
Loading…
Reference in a new issue