mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 23:17:20 +01:00
Fix compile job recursion crash
This commit is contained in:
@@ -40,7 +40,10 @@ namespace Tgstation.Server.Host.Models
|
||||
OriginCommitSha = OriginCommitSha,
|
||||
PrimaryTestMerge = PrimaryTestMerge?.ToApi(),
|
||||
ActiveTestMerges = ActiveTestMerges.Select(x => x.TestMerge.ToApi()).ToList(),
|
||||
CompileJobs = CompileJobs.Select(x => x.ToApi()).ToList()
|
||||
CompileJobs = CompileJobs.Select(x => new Api.Models.CompileJob
|
||||
{
|
||||
Id = x.Id //anti recursion measure
|
||||
}).ToList()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user