i'm in sql abstraction hell

This commit is contained in:
Matthew Connelly 2015-11-14 06:33:48 +00:00
parent 1b524d7996
commit 6b01131e87
1 changed files with 1 additions and 4 deletions

View File

@ -55,10 +55,7 @@ sub GetPaste {
return schema->resultset('Paste')->single( {
-and => [
{ id => $id },
-or => [
{ expiration => { '>=' => DateTimeToQueryable() }},
{ expiration => undef }
]
{ expiration => { '>=' => DateTimeToQueryable() }, expiration => undef }
] } ) || undef;
}
sub StorePaste {