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( {
|
return schema->resultset('Paste')->single( {
|
||||||
-and => [
|
-and => [
|
||||||
{ id => $id },
|
{ id => $id },
|
||||||
-or => [
|
{ expiration => { '>=' => DateTimeToQueryable() }, expiration => undef }
|
||||||
{ expiration => { '>=' => DateTimeToQueryable() }},
|
|
||||||
{ expiration => undef }
|
|
||||||
]
|
|
||||||
] } ) || undef;
|
] } ) || undef;
|
||||||
}
|
}
|
||||||
sub StorePaste {
|
sub StorePaste {
|
||||||
|
|
Loading…
Reference in New Issue