Skip to content

Commit bea245b

Browse files
Fixing multiplication error
1 parent b570ffa commit bea245b

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

MailDaemon/MailDaemon.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RootModule = 'MailDaemon.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '1.0.0'
6+
ModuleVersion = '1.0.1'
77

88
# ID used to uniquely identify this module
99
GUID = 'd5ba333f-5210-4d69-83f0-150dd0909139'

MailDaemon/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.0.1 (2023-10-06)
4+
5+
+ Fix: Invoke-MDDaemon - errors trying to multiply timespan
6+
37
## 1.0.0 (2023-10-05)
48

59
+ General: Project Upgrade to the latest project template (including the tests).

MailDaemon/functions/Invoke-MDDaemon.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
#region Cleanup expired mails
9090
foreach ($item in (Get-ChildItem -Path (Get-PSFConfigValue -FullName 'MailDaemon.Daemon.MailSentPath')))
9191
{
92-
if ($item.LastWriteTime -lt (Get-Date).Add((-1 * (Get-PSFConfigValue -FullName 'MailDaemon.Daemon.MailSentRetention'))))
92+
if ($item.LastWriteTime -lt (Get-Date).AddTicks((-1 * (Get-PSFConfigValue -FullName 'MailDaemon.Daemon.MailSentRetention').Ticks)))
9393
{
9494
Remove-Item $item.FullName
9595
}

0 commit comments

Comments
 (0)