more queue tweaks
This commit is contained in:
parent
00004e1a12
commit
c6b67518d6
@ -24,7 +24,7 @@ function deliver_run($argv, $argc) {
|
|||||||
$result = z_post_url($r[0]['outq_posturl'],$r[0]['outq_msg']);
|
$result = z_post_url($r[0]['outq_posturl'],$r[0]['outq_msg']);
|
||||||
if($result['success'] && $result['return_code'] < 300) {
|
if($result['success'] && $result['return_code'] < 300) {
|
||||||
logger('deliver: queue post success to ' . $r[0]['outq_posturl'], LOGGER_DEBUG);
|
logger('deliver: queue post success to ' . $r[0]['outq_posturl'], LOGGER_DEBUG);
|
||||||
$y = q("update outq set outq_delivered = '%s' where outq_hash = '%s' limit 1",
|
$y = q("delete from outq where outq_hash = '%s' limit 1",
|
||||||
dbesc($argv[$x])
|
dbesc($argv[$x])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ function queue_run($argv, $argc){
|
|||||||
$result = z_post_url($rr['outq_posturl'],$rr['outq_msg']);
|
$result = z_post_url($rr['outq_posturl'],$rr['outq_msg']);
|
||||||
if($result['success'] && $result['return_code'] < 300) {
|
if($result['success'] && $result['return_code'] < 300) {
|
||||||
logger('deliver: queue post success to ' . $rr['outq_posturl'], LOGGER_DEBUG);
|
logger('deliver: queue post success to ' . $rr['outq_posturl'], LOGGER_DEBUG);
|
||||||
$y = q("update outq set outq_delivered = '%s' where outq_hash = '%s' limit 1",
|
$y = q("delete from outq where outq_hash = '%s' limit 1",
|
||||||
dbesc($rr['ouq_hash'])
|
dbesc($rr['ouq_hash'])
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user