mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-18 01:20:07 +01:00
fix: allow for image deletion (by leaving blank url)
This commit is contained in:
@@ -387,6 +387,7 @@ public class QuotesController : ControllerBase
|
|||||||
// Try to find the quote in question
|
// Try to find the quote in question
|
||||||
Quote? quote = await _db.Quotes
|
Quote? quote = await _db.Quotes
|
||||||
.Include(q => q.QuoteCategories)
|
.Include(q => q.QuoteCategories)
|
||||||
|
.Include(q => q.Image)
|
||||||
.FirstOrDefaultAsync(q => q.Id == id);
|
.FirstOrDefaultAsync(q => q.Id == id);
|
||||||
|
|
||||||
// Failed?
|
// Failed?
|
||||||
|
|||||||
Reference in New Issue
Block a user