mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 05:09:49 +02:00
Use ExecuteDelete instead of ffetching data and then removing the entries
This commit is contained in:
@@ -132,7 +132,7 @@ using (IServiceScope scope = app.Services.CreateScope())
|
||||
await context.Database.MigrateAsync(CancellationToken.None);
|
||||
await context.Database.EnsureCreatedAsync(CancellationToken.None);
|
||||
|
||||
context.Notifications.RemoveRange(context.Notifications);
|
||||
context.Notifications.ExecuteDelete();
|
||||
string[] emojis = ["(•‿•)", "(づ \u25d5‿\u25d5 )づ", "( \u02d8\u25bd\u02d8)っ\u2668", "=\uff3e\u25cf \u22cf \u25cf\uff3e=", "(ΦωΦ)", "(\u272a\u3268\u272a)", "( ノ・o・ )ノ", "(〜^\u2207^ )〜", "~(\u2267ω\u2266)~","૮ \u00b4• ﻌ \u00b4• ა", "(\u02c3ᆺ\u02c2)", "(=\ud83d\udf66 \u0f1d \ud83d\udf66=)"
|
||||
];
|
||||
await context.Notifications.AddAsync(new ("Tranga Started", emojis[Random.Shared.Next(0, emojis.Length - 1)], NotificationUrgency.High), CancellationToken.None);
|
||||
|
Reference in New Issue
Block a user