arrival => { '!=' => undef},
delivered => { '>' => 'today'},
},{
- idlist => 1, order_by => { acsp => {delivered => {direction => 'desc'}} }
- }]);
+ order_by => { acsp => {delivered => {direction => 'desc'}} }
+ }],{ idlist => 1 });
- return md5_hex( join(',', map { $_->id . $_->slot // '' } @$slots) );
+ return md5_hex( join(',', @$slots) );
}
__PACKAGE__->register_method(
method => "fetch_latest_delivered",
arrival => { '!=' => undef},
delivered => undef,
},{
- idlist => 1, order_by => { acsp => { arrival => { direction => 'desc' } } }
- }]);
+ order_by => { acsp => { arrival => { direction => 'desc' } } }
+ }],{ idlist => 1 });
- return md5_hex( join(',', map { $_->id . $_->slot // '' } @$slots) );
+ return md5_hex( join(',', @$slots) );
}
__PACKAGE__->register_method(
method => "fetch_latest_arrived",
staged => { '!=' => undef},
arrival => undef
},{
- idlist => 1, # fully ordered IDs will capture insertion, deletion, AND edit
order_by => [
{ class => acsp => field => slot => direction => 'desc' },
{ class => acsp => field => id => direction => 'desc' }
]
- }]);
+ }],{ idlist => 1 });
- return md5_hex( join(',', map { $_->id . $_->slot // '' } @$slots) );
+ return md5_hex( join(',', @$slots) );
}
__PACKAGE__->register_method(
method => "fetch_latest_staged",
staged => undef,
slot => { '<=' => $horizon->strftime('%FT%T%z') },
},{
- idlist => 1, # fully ordered IDs will capture insertion, deletion, AND edit
order_by => [
{ class => acsp => field => slot => direction => 'desc' },
{ class => acsp => field => id => direction => 'desc' }
]
- }]);
+ }],{ idlist => 1 });
- return md5_hex( join(',', map { $_->id . $_->slot // '' } @$slots) );
+ return md5_hex( join(',', @$slots) );
}
__PACKAGE__->register_method(
method => "fetch_latest_to_be_staged",