Change scanRecursively to an Option field

This commit is contained in:
moerfi
2022-01-22 22:14:21 +01:00
parent 39f2f8cc1b
commit a6e79a32a8
3 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,7 @@ object ScanMailboxRoutes {
ScanMailboxArgs(
user,
settings.imapConnection,
settings.scanRecursively,
Option(settings.scanRecursively),
settings.folders,
settings.receivedSinceHours.map(_.toLong).map(Duration.hours),
settings.targetFolder,
@ -151,7 +151,7 @@ object ScanMailboxRoutes {
task.summary,
conn.getOrElse(Ident.unsafe("")),
task.args.folders,
task.args.scanRecursively,
task.args.scanRecursively.getOrElse(false),
task.timer,
task.args.receivedSince.map(_.hours.toInt),
task.args.targetFolder,