This commit is contained in:
@@ -25,6 +25,7 @@ namespace AyaNova.DataList
|
||||
|
||||
dynamic cm = new JObject();
|
||||
cm.fld = "eventcreated";
|
||||
cm.sort="-";
|
||||
dlistView.Add(cm);
|
||||
|
||||
cm = new JObject();
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace AyaNova.Biz
|
||||
internal static async Task DeleteObjectLogAsync(long userId, AyaType ayaType, long ayId, string textra, AyContext ct)
|
||||
{
|
||||
await ct.Database.ExecuteSqlInterpolatedAsync($"delete from aevent where ayatype = {ayaType} and ayid={ayId}");
|
||||
await ct.Event.AddAsync(new Event(userId, ayId, ayaType, AyaEvent.Deleted, textra));
|
||||
await ct.Event.AddAsync(new Event(userId, ayId, ayaType, AyaEvent.Deleted, $"{textra} (id {ayId})"));
|
||||
await ct.SaveChangesAsync();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user