Make errorhandler and languagehandler async, await all database actions
This commit is contained in:
parent
926a632641
commit
95618b1f8b
46 changed files with 181 additions and 137 deletions
|
@ -2,6 +2,6 @@
|
|||
{
|
||||
public interface ILevelCalc
|
||||
{
|
||||
int GetLevel(int experience);
|
||||
int GetLevel(int? experience);
|
||||
}
|
||||
}
|
|
@ -19,7 +19,7 @@ namespace Geekbot.net.Lib.Levels
|
|||
_levels = levels.ToArray();
|
||||
}
|
||||
|
||||
public int GetLevel(int messages)
|
||||
public int GetLevel(int? messages)
|
||||
{
|
||||
var returnVal = 1;
|
||||
foreach (var level in _levels)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue