1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

Add search param for list subscribers endpoint

This commit is contained in:
Steven Nguyen 2024-01-02 23:39:46 +00:00
parent 31e23a37c1
commit 50aab32f0f
No known key found for this signature in database
GPG key ID: 22EB8611C67E9E5C
2 changed files with 20 additions and 1 deletions

View file

@ -1810,6 +1810,17 @@ $commonCollections = [
'array' => false,
'filters' => [],
],
[
'$id' => ID::custom('search'),
'type' => Database::VAR_STRING,
'format' => '',
'size' => 16384,
'signed' => true,
'required' => false,
'default' => null,
'array' => false,
'filters' => [],
],
],
'indexes' => [
[
@ -1853,7 +1864,14 @@ $commonCollections = [
'attributes' => ['topicInternalId'],
'lengths' => [],
'orders' => [],
]
],
[
'$id' => ID::custom('_fulltext_search'),
'type' => Database::INDEX_FULLTEXT,
'attributes' => ['search'],
'lengths' => [],
'orders' => [],
],
],
],

View file

@ -1955,6 +1955,7 @@ App::post('/v1/messaging/topics/:topicId/subscribers')
'userId' => $user->getId(),
'userInternalId' => $user->getInternalId(),
'providerType' => $target->getAttribute('providerType'),
'search' => "{$target->getAttribute('providerType')} "
]);
try {