Fixed compiler warnings.
This commit is contained in:
@ -51,12 +51,15 @@ namespace HermesSocketServer.Quests
|
||||
});
|
||||
|
||||
string sql2 = "SELECT id FROM \"Quest\" WHERE type = @type AND start = @start";
|
||||
int? questId = (int?)await _database.ExecuteScalar(sql, c =>
|
||||
int? questId = (int?)await _database.ExecuteScalar(sql2, c =>
|
||||
{
|
||||
c.Parameters.AddWithValue("@type", temp.Type);
|
||||
c.Parameters.AddWithValue("@start", temp.StartTime);
|
||||
});
|
||||
|
||||
if (questId == null)
|
||||
return;
|
||||
|
||||
var quest = new DailyQuest((short)questId.Value, task, date);
|
||||
_quests.Add(quest.Id, quest);
|
||||
}
|
||||
@ -88,12 +91,15 @@ namespace HermesSocketServer.Quests
|
||||
});
|
||||
|
||||
string sql2 = "SELECT id FROM \"Quest\" WHERE type = @type AND start = @start";
|
||||
int? questId = (int?)await _database.ExecuteScalar(sql, c =>
|
||||
int? questId = (int?)await _database.ExecuteScalar(sql2, c =>
|
||||
{
|
||||
c.Parameters.AddWithValue("@type", temp.Type);
|
||||
c.Parameters.AddWithValue("@start", temp.StartTime);
|
||||
});
|
||||
|
||||
if (questId == null)
|
||||
return;
|
||||
|
||||
var quest = new WeeklyQuest((short)questId.Value, task, date);
|
||||
_quests.Add(quest.Id, quest);
|
||||
}
|
||||
|
Reference in New Issue
Block a user