Second upload
This commit is contained in:
parent
1d91254c61
commit
6af20afa72
@ -66,7 +66,7 @@ public class ParkingUpdateService : BackgroundService
|
||||
{
|
||||
Timestamp = DateTime.Now,
|
||||
TotalParkingSpaces = totalParkingSpaces,
|
||||
RemainingSpaces = remainingSpaces,
|
||||
RemainingSpaces = Math.Max(remainingSpaces, 0), // 確保儲存時不為負數
|
||||
MonthlyRentSpaces = monthlyRentNumber,
|
||||
TemporaryRentSpaces = Math.Abs(temporaryRentNumber),
|
||||
DayOfWeek = DateTime.Now.ToString("dddd", new CultureInfo("zh-TW"))
|
||||
|
Loading…
Reference in New Issue
Block a user