@ -86,7 +88,8 @@ public class MailDAOImpl implements MailDAO {
@Override
@Override
publicList<MailModel>getUnsentMessages(){
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<>();
List<MailModel>unsentMails=newArrayList<>();
@ -171,6 +174,7 @@ public class MailDAOImpl implements MailDAO {
outputStream.write(buffer);
outputStream.write(buffer);
}
}
}catch(IOExceptione){
}catch(IOExceptione){
logger.info(e.getMessage());
thrownewFileConversionException("Error converting Blob to File",e);
thrownewFileConversionException("Error converting Blob to File",e);