Skip to content

Commit

Permalink
Add received timestamp on incoming introductions; (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen authored Dec 4, 2024
1 parent 4424e76 commit d5a4f2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ const IncomingIntroductionsSection = ({
<p className="text-sm text-slate-400">
{t('Introduced by')}{' '}
<AuthorName excludeLink={true} odinId={introduction?.introducerOdinId} />
{introduction.received ? (
<>
{t(' on ')} {new Date(introduction.received).toLocaleDateString()}
</>
) : null}
</p>
</PersonCard>
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export interface Introduction {
introducerOdinId: string;
lastProcessed: number;
sendAttemptCount: number;
received: number;
}

export const getReceivedIntroductions = async (
Expand Down

0 comments on commit d5a4f2c

Please sign in to comment.