@ -88,8 +86,7 @@ public class MailDAOImpl implements MailDAO {
@Override
publicList<MailModel>getUnsentMessages(){
Stringsql="SELECT E.* FROM EMAIL E LEFT JOIN SENTEMAIL SE ON E.UUID = SE.UUID WHERE SE.UUID IS NULL AND"+
"(E.EXPIRY_AT IS NULL OR E.EXPIRY_AT > CURRENT_DATE)";
Stringsql="SELECT E.* FROM EMAIL E LEFT JOIN SENTEMAIL SE ON E.UUID = SE.UUID WHERE SE.UUID IS NULL AND (E.EXPIRY_AT IS NULL OR E.EXPIRY_AT > CURRENT_DATE)";
List<MailModel>unsentMails=newArrayList<>();
@ -174,7 +171,6 @@ public class MailDAOImpl implements MailDAO {
outputStream.write(buffer);
}
}catch(IOExceptione){
logger.info(e.getMessage());
thrownewFileConversionException("Error converting Blob to File",e);