Commit 06913d0
authored
fix(pedm): ensure get_last_request_time has a value (#1352)
The comments for
[AboutData](https://github.com/Devolutions/devolutions-gateway/blob/668e0b43edd5ee2ce4cbf4692920c09d732eeb85/crates/devolutions-pedm/src/model.rs#L7)
say
> This can be `None` if `/about` is the first request made.
Which is true and correct; but is causing a crash in the .NET OpenAPI
client if /about is the first request made.
For whatever reason, the .NET OpenAPI
[generator](https://github.com/Devolutions/devolutions-gateway/blob/668e0b43edd5ee2ce4cbf4692920c09d732eeb85/crates/devolutions-pedm/openapi/dotnet-client/src/Devolutions.Pedm.Client/Model/AboutData.cs#L74)
is not creating a nullable property.
This may be related to the issues I had in #1164, but I don't have time
to dig into it now. Since this is non-critical / non-user facing; I just
force a value here for the first request (the UNIX epoch seems
reasonable).1 parent 668e0b4 commit 06913d0
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
0 commit comments