i'm in sql abstraction hell
This commit is contained in:
parent
1b524d7996
commit
6b01131e87
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue