Bug in SQLite file layer

This commit is contained in:
Luc Didry 2017-07-22 19:17:31 +02:00
parent d909b8ad70
commit d5395f4296
1 changed files with 1 additions and 5 deletions

View File

@ -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($records[0]);
$c->record->update(created_at => time);
$c->write;
$c->_slurp;
return $c;
return $c->record($records[0])->_slurp->created_at(time)->write;
}
sub get_stats {