feat: wip

This commit is contained in:
David Nguyen
2023-12-27 17:44:36 +11:00
parent 917a1271bf
commit d546907c53
8 changed files with 14 additions and 16 deletions

View File

@ -304,7 +304,6 @@ const findTeamDocumentsFilter = (
})
.with(ExtendedDocumentStatus.INBOX, () => {
// Return a filter that will return nothing.
// Todo: Teams - Should be a better way to do this.
if (!teamEmail) {
return null;
}

View File

@ -194,7 +194,7 @@ export const createTeamFromPendingTeam = async ({
.catch((e) => {
console.error(e);
// Non-critical error, but we want to log it so we can rectify it.
// Todo: Teams - Send alert.
// Todo: Teams - Alert us.
});
});
};

View File

@ -1,6 +1,6 @@
import { Recipient } from '@documenso/prisma/client';
import type { Recipient } from '@documenso/prisma/client';
export const recipientInitials = (text: string) =>
export const extractInitials = (text: string) =>
text
.split(' ')
.map((name: string) => name.slice(0, 1).toUpperCase())
@ -8,5 +8,5 @@ export const recipientInitials = (text: string) =>
.join('');
export const recipientAbbreviation = (recipient: Recipient) => {
return recipientInitials(recipient.name) || recipient.email.slice(0, 1).toUpperCase();
return extractInitials(recipient.name) || recipient.email.slice(0, 1).toUpperCase();
};