Add image to ModListSummary

This commit is contained in:
Timothy Baldridge 2022-05-14 21:05:55 -06:00
parent 31517fba50
commit dbdb0713f7
3 changed files with 6 additions and 2 deletions

View File

@ -7,7 +7,7 @@ on:
branches: [ main ]
env:
VERSION: 3.0.0.0-beta9
VERSION: 3.0.0.0-beta10
jobs:
build:

View File

@ -525,7 +525,8 @@ public class ValidateLists : IVerb
Passed = l.Archives.Count(f => f.Status == ArchiveStatus.Valid),
MachineURL = l.MachineURL,
Name = l.Name,
Updating = 0
Updating = 0,
Image = l.Image
}).ToArray();

View File

@ -1,3 +1,4 @@
using System;
using System.Text.Json.Serialization;
namespace Wabbajack.DTOs;
@ -23,4 +24,6 @@ public class ModListSummary
[JsonPropertyName("modlist_missing")] public bool ModListIsMissing { get; set; }
[JsonPropertyName("has_failures")] public bool HasFailures => Failed > 0 || ModListIsMissing;
[JsonPropertyName("image")] public Uri Image { get; set; }
}