Commit d5395f42 authored by Luc Didry's avatar Luc Didry

Bug in SQLite file layer

parent d909b8ad
......@@ -79,12 +79,8 @@ sub get_empty {
my $c = shift;
my @records = Lufi::DB::SQLite::Files->select('WHERE created_at IS NULL LIMIT 1');
$c->record->update(created_at => time);
return $c;
return $c->record($records[0])->_slurp->created_at(time)->write;
sub get_stats {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment