Fixes #909 again, because math is super hard

This commit is contained in:
snipe
2015-07-27 15:26:53 -07:00
parent 66a198a175
commit 26e081a2cb
+1 -1
View File
@@ -171,7 +171,7 @@ public function freeSeat()
return License::whereNotNull('expiration_date')
->whereNull('deleted_at')
->whereRaw(DB::raw( 'DATE_SUB(`expiration_date`,INTERVAL '.$days.' DAY) <= DATE(NOW()) ' ))
->where('expiration_date','<',date("Y-m-d"))
->where('expiration_date','>',date("Y-m-d"))
->orderBy('expiration_date', 'ASC')
->get();