mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
refactor(infra): simplify toListItemDTO pendingConfirmation projection
This commit is contained in:
@@ -54,6 +54,6 @@ export function toListItemDTO(
|
|||||||
description: state.description,
|
description: state.description,
|
||||||
mailbox_id: state.mailboxId,
|
mailbox_id: state.mailboxId,
|
||||||
expires_at: state.expiresAt,
|
expires_at: state.expiresAt,
|
||||||
...(pendingConfirmation !== undefined ? { pendingConfirmation } : {}),
|
pendingConfirmation,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user