fix: send_to_session – fremde Sessions erlauben, Telegram-Notify, Fehler-Logging
This commit is contained in:
1 parent
c18b94cd4e
commit
2486eee047
4 files changed
+53
-15
No files matched your search
@@ -559,6 +559,15 @@ public class DatabaseService
|
||||
return session;
|
||||
}
|
||||
|
||||
public async Task<SessionRecord> GetSessionByName(string name)
|
||||
{
|
||||
using var conn = CreateConnection();
|
||||
var sessions = await conn.QueryAsync<SessionRecord>(
|
||||
"SELECT * FROM sessions WHERE is_deleted = 0 AND LOWER(name) = LOWER(@name) ORDER BY updated_at DESC LIMIT 1",
|
||||
new { name });
|
||||
return sessions.FirstOrDefault();
|
||||
}
|
||||
|
||||
public async Task<List<SessionWithStats>> GetSessionsWithStats(string userId)
|
||||
{
|
||||
using var conn = CreateConnection();
|
||||
|
||||
Reference in new issue
Block a user