refactor(server): partner search dto (#10902)

* refactor(server): partner search dto

* fix: missed reference

* mobile fix

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Jason Rasmussen 2024-07-08 16:41:39 -04:00 committed by GitHub
parent 5f25e2ce82
commit 334a709cc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 136 additions and 40 deletions

View file

@ -2,6 +2,7 @@
import {
createPartner,
getPartners,
PartnerDirection,
removePartner,
updatePartner,
type PartnerResponseDto,
@ -40,8 +41,8 @@
partners = [];
const [sharedBy, sharedWith] = await Promise.all([
getPartners({ direction: 'shared-by' }),
getPartners({ direction: 'shared-with' }),
getPartners({ direction: PartnerDirection.SharedBy }),
getPartners({ direction: PartnerDirection.SharedWith }),
]);
for (const candidate of sharedBy) {