rename all variants of naming that hold an AyaType value to "aType" (parameter) / "AType" (not parameter) everywhere front and back; "ayType", "objectType", "oType" all are used in various areas
This commit is contained in:
@@ -451,7 +451,7 @@ namespace AyaNova.Util
|
||||
Notes = notes,
|
||||
ContentType = contentType,
|
||||
AttachToObjectId = attachToObject.ObjectId,
|
||||
AttachToObjectType = attachToObject.ObjectType,
|
||||
AttachToAType = attachToObject.AType,
|
||||
LastModified = lastModified,
|
||||
Size = FileSize
|
||||
|
||||
@@ -495,7 +495,7 @@ namespace AyaNova.Util
|
||||
//
|
||||
internal static async Task DeleteAttachmentsForObjectAsync(AyaType ayaType, long ayaId, AyContext ct)
|
||||
{
|
||||
var deleteList = await ct.FileAttachment.Where(z => z.AttachToObjectId == ayaId && z.AttachToObjectType == ayaType).ToListAsync();
|
||||
var deleteList = await ct.FileAttachment.Where(z => z.AttachToObjectId == ayaId && z.AttachToAType == ayaType).ToListAsync();
|
||||
foreach (var d in deleteList)
|
||||
{
|
||||
await DeleteFileAttachmentAsync(d, ct);
|
||||
|
||||
Reference in New Issue
Block a user