Bug in SQLite file layer
This commit is contained in:
parent
d909b8ad70
commit
d5395f4296
|
@ -79,12 +79,8 @@ sub get_empty {
|
||||||
my $c = shift;
|
my $c = shift;
|
||||||
|
|
||||||
my @records = Lufi::DB::SQLite::Files->select('WHERE created_at IS NULL LIMIT 1');
|
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 {
|
sub get_stats {
|
||||||
|
|
Loading…
Reference in New Issue