From e1729c7a711f7775075b0cbdcbaa3ed19d7f757f Mon Sep 17 00:00:00 2001 From: Sven Carrillo Castillo Date: Tue, 17 Oct 2023 21:24:50 +0200 Subject: [PATCH] tidy up --- src/main/java/com/recom/mapper/MessageMapper.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/com/recom/mapper/MessageMapper.java b/src/main/java/com/recom/mapper/MessageMapper.java index b45d21cc..58abf7b8 100644 --- a/src/main/java/com/recom/mapper/MessageMapper.java +++ b/src/main/java/com/recom/mapper/MessageMapper.java @@ -17,14 +17,12 @@ public interface MessageMapper { MessageMapper INSTANCE = Mappers.getMapper(MessageMapper.class); - @NonNull @Named("timestampToTimestampEpochMilliseconds") static long timestampToTimestampEpochMilliseconds(@Nullable final LocalDateTime timestamp) { return timestamp.toInstant(ZoneOffset.UTC).toEpochMilli(); } @Mapping(source = "timestamp", target = "timestampEpochMilliseconds", qualifiedByName = "timestampToTimestampEpochMilliseconds") - @Mapping(source = "timestampConfirmation", target = "timestampConfirmationEpochMilliseconds", qualifiedByName = "timestampToTimestampEpochMilliseconds") MessageDto toDto(final Message entity); } \ No newline at end of file