only update selected recording entries, set timestamp on creating and modifying

This commit is contained in:
Milan
2018-01-18 16:28:34 +01:00
parent cec1a0fdcc
commit 459d36b7c7
4 changed files with 73 additions and 17 deletions

View File

@@ -140,6 +140,10 @@ sub update{
rmsLeft=?, rmsRight=?
where project_id=? and studio_id=? and event_id=?
};
if (defined $entry->{id}){
$query.=' and id=?';
push @$bind_values, $entry->{id};
}
#print STDERR Dumper($query).Dumper($bind_values);
return db::put($dbh, $query, $bind_values);
}