remove db logs

This commit is contained in:
hydrant
2021-05-15 10:18:38 +02:00
parent a2db770316
commit 7ad941cd91
3 changed files with 188 additions and 188 deletions

View File

@@ -43,7 +43,7 @@ namespace ReallifeGamemode.Server.WeaponDeal
return;
}
using (var context = new DatabaseContext(true))
using (var context = new DatabaseContext())
{
FactionVehicle factionVehicle = context.FactionVehicles.Where(f => f.Model == WEAPON_DEAL_GANG_VEHICLE_HASH || f.Model == WEAPON_DEAL_STAATSFRAK_VEHICLE_HASH)
.ToList()
@@ -130,7 +130,7 @@ namespace ReallifeGamemode.Server.WeaponDeal
Faction fac = context.Factions.Where(f => f.Id == user.FactionId).FirstOrDefault();
fac.WeaponDealTime = (fac.Id == 1 | fac.Id == 3) ? 180 : 60;
context.SaveChanges();
context.SaveChanges();
}
}