feat: complete public CV sharing
CI and Deploy / test (push) Successful in 2m34s
CI and Deploy / deploy (push) Successful in 1m0s

This commit is contained in:
cesnimda
2026-07-30 23:19:17 +02:00
parent 158970fa01
commit fd2c60e70f
3 changed files with 19 additions and 1 deletions
@@ -96,6 +96,7 @@ public sealed class CvVariantService : ICvVariantService
{
var variant = await GetAsync(ownerUserId, id, ct);
if (variant is null) return null;
if (isPublic && !variant.IsPublic) variant.PublicSlug = NewSlug();
variant.IsPublic = isPublic;
variant.UpdatedAtUtc = DateTimeOffset.UtcNow;
await _db.SaveChangesAsync(ct);