Clean up domain entities: shared picture value object, lifecycle and ownership interfaces, explicit tables
This commit is contained in:
@@ -52,7 +52,7 @@ public sealed class UploadIntentValidator(
|
||||
if (intent.IsConsumed)
|
||||
return Error.Conflict(description: "Upload intent has already been consumed.");
|
||||
|
||||
if (intent.IsExpired)
|
||||
if (intent.IsExpiredAt(DateTime.UtcNow))
|
||||
return Error.Validation(description: "Upload intent has expired.");
|
||||
|
||||
var metadata = await storageService.HeadObjectAsync(intent.Bucket, intent.Key, cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user