fix error when no bill was found

This commit is contained in:
Thomas Ruoff
2020-10-10 00:45:50 +02:00
parent 396e4b0a86
commit 9a4d55a3e2

View File

@@ -122,5 +122,5 @@ export async function getMilageMax(): Promise<number> {
.select('milageEnd')
.exec()
return billMaxMilageEnd?.milageEnd
return billMaxMilageEnd?.milageEnd || 0
}