mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
Some hawt API changes so I can automate some stuff
This commit is contained in:
parent
13b21db8d9
commit
676eb3d7f9
|
@ -74,8 +74,11 @@ public async Task<bool> AddWin10Builds(NewBuild apiModel)
|
|||
Number = nb.Number,
|
||||
Revision = nb.Revision,
|
||||
Lab = nb.Lab,
|
||||
BuildTime = nb.BuildTime,
|
||||
FlightLevel = nb.FlightLevel
|
||||
BuildTime = nb.BuildTime.HasValue ? DateTime.SpecifyKind(nb.BuildTime.Value, DateTimeKind.Utc) : null as DateTime?,
|
||||
Added = DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Utc),
|
||||
Modified = DateTime.SpecifyKind(DateTime.UtcNow, DateTimeKind.Utc),
|
||||
SourceType = TypeOfSource.PrivateLeak,
|
||||
FlightLevel = LevelOfFlight.None
|
||||
}));
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,5 @@ public class NewBuildObject
|
|||
public uint? Revision { get; set; }
|
||||
public string Lab { get; set; }
|
||||
public DateTime? BuildTime { get; set; }
|
||||
public LevelOfFlight FlightLevel { get; set; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user