Add invite_request_username property to AdminAccount

This commit is contained in:
Alex Gleason 2024-06-06 15:26:35 -05:00
parent 179cafcc23
commit 4f87287d45
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ const adminAccountsController: AppController = async (c) => {
return {
...account,
invite_request: request ? request.content : null,
invite_request: request?.content ?? null,
invite_request_username: request?.tags.find(([name]) => name === 'r')?.[1] ?? null,
approved: !!grant,
};
}),