Skip to content

Commit

Permalink
fix: fixed sqlite job issue
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Aug 21, 2024
1 parent 133036e commit 5559a48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jobs/cleanup-sqlite.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ const mountDir = config.env === 'production' ? '/mnt' : tmpdir;
// and the notification was sent within the past 7 days
// then we can return early
if (
typeof alias.storage_thresholds_sent_at === 'object' &&
_.isObject(alias.storage_thresholds_sent_at) &&
!_.isArray(alias.storage_thresholds_sent_at) &&
alias.storage_thresholds_sent_at[threshold.toString()] &&
_.isDate(alias.storage_thresholds_sent_at[threshold.toString()]) &&
new Date(
Expand Down

0 comments on commit 5559a48

Please sign in to comment.