mirror of
https://github.com/osukey/osukey.git
synced 2025-06-29 23:28:00 +09:00
Use QuerySingle instead of QueryFirst
This commit is contained in:
parent
b9b5779251
commit
035b513b68
@ -65,7 +65,7 @@ namespace osu.Game.Beatmaps
|
|||||||
{
|
{
|
||||||
using (var db = new SqliteConnection(storage.GetDatabaseConnectionString("online")))
|
using (var db = new SqliteConnection(storage.GetDatabaseConnectionString("online")))
|
||||||
{
|
{
|
||||||
var found = db.QueryFirstOrDefault<CachedOnlineBeatmapLookup>(
|
var found = db.QuerySingleOrDefault<CachedOnlineBeatmapLookup>(
|
||||||
"SELECT * FROM osu_beatmaps WHERE checksum = @MD5Hash OR beatmap_id = @OnlineBeatmapID OR filename = @Path", beatmap);
|
"SELECT * FROM osu_beatmaps WHERE checksum = @MD5Hash OR beatmap_id = @OnlineBeatmapID OR filename = @Path", beatmap);
|
||||||
|
|
||||||
if (found != null)
|
if (found != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user