Browse Source

fix pending namespace

main
ghost 9 months ago
parent
commit
2fc058c2f1
  1. 4
      src/controller/room.php

4
src/controller/room.php

@ -169,7 +169,7 @@ class Room
$posts = []; $posts = [];
// Get pending posts // Get pending posts
foreach ($this->_pending() as $pending) foreach ($this->_pending($namespace) as $pending)
{ {
if ($post = $this->_post($namespace, $pending['key'], $records, null, $time)) if ($post = $this->_post($namespace, $pending['key'], $records, null, $time))
{ {
@ -896,7 +896,7 @@ class Room
return null; return null;
} }
private function _pending(): array private function _pending(string $namespace): array
{ {
$result = []; $result = [];

Loading…
Cancel
Save