feature/VSN-1125 - Move documents implementations
1 fil de conversation non résolu
1 fil de conversation non résolu
Closes VSN-1125
Rapports de requête de fusion
Activité
Filtrer l'activité
assigned to @youssef.achkir
388 387 return docs.stream().map(documentMapper::toDto).collect(Collectors.toList()); 389 388 } 390 389 390 @Override 391 @Transactional 392 public void moveDocument(Long documentId, Long targetFolderId, Long ownerId) throws FunctionalException, S3FunctionalException { 393 Document doc = documentRepository.findById(documentId) 394 .orElseThrow(() -> new FunctionalException(MessageConstants.DOCUMENT_NOT_FOUND)); 395 396 if (!(doc.getOwnerId() == ownerId)) { @youssef.achkir why would you compare like this ? why not doc.getOwnerId() != ownerId ??
changed this line in version 2 of the diff
mentioned in commit 4800b9d7
Veuillez vous inscrire ou vous connecter pour répondre