diff --git a/scripts/database/entry/activity.JS b/scripts/database/entry/activity.JS index b6cc58d..06ef6ae 100644 --- a/scripts/database/entry/activity.JS +++ b/scripts/database/entry/activity.JS @@ -15,6 +15,9 @@ class Activity extends Entry { // Set a default date value. this.date = this.date ? this.date : new Date(Date.now()); this.set_date(this.date); + + // Convert the duration to a number if it isn't. + (this.duration) ? this.duration = parseInt(this.duration) : null; }; /*