fix(rd21): guard career and job saves with durable revisions
This commit is contained in:
@@ -42,7 +42,7 @@ public sealed class SqliteDateTimeOffsetCompatibilityTests
|
||||
db.Attachments.Add(attachment);
|
||||
await db.SaveChangesAsync();
|
||||
var career = new CareerProfileService(db);
|
||||
await career.SaveVersionAsync("user-1", JsonSerializer.Deserialize<StructuredCvProfile>("{\"version\":\"1\",\"contact\":{\"fullName\":\"Åse\",\"headline\":\"Original profile\"}}", new JsonSerializerOptions { PropertyNameCaseInsensitive = true })!, "manual", default);
|
||||
await career.SaveVersionAsync("user-1", JsonSerializer.Deserialize<StructuredCvProfile>("{\"version\":\"1\",\"contact\":{\"fullName\":\"Åse\",\"headline\":\"Original profile\"}}", new JsonSerializerOptions { PropertyNameCaseInsensitive = true })!, "manual", 0, default);
|
||||
var variants = new CvVariantService(db, career, new ThemedCvRenderer());
|
||||
var assets = new ApplicationAssetsService(db, variants, new ApplicationIntelligenceService(db, new JobCvMatchService()));
|
||||
Assert.NotNull(await assets.GetTailoringPlanAsync("user-1", job.Id, default));
|
||||
|
||||
Reference in New Issue
Block a user