Merged PR 175: Fix bug
Fix bug
This commit is contained in:
@@ -70,9 +70,6 @@ public class DeletionService {
|
||||
|
||||
ksDocumentRepository.deleteById(deletionRequest.getKsDocumentId());
|
||||
logger.info("KSDocument with id {} deleted successfully.", deletionRequest.getKsDocumentId());
|
||||
// }else{
|
||||
// logger.warn("KSDocument with id {} does not exist.", deletionRequest.getKsDocumentId());
|
||||
// }
|
||||
} catch (Exception e) {
|
||||
logger.error("An error occurred while deleting records: ", e+" "+Thread.currentThread().getName());
|
||||
throw new RuntimeException("An error occurred while deleting records", e);
|
||||
@@ -144,8 +141,6 @@ public class DeletionService {
|
||||
ksVideo.setIngestionStatus("LOADED");
|
||||
Date now = new Date();
|
||||
ksVideo.setIngestionDate(now);
|
||||
ksVideo.setChunked(false);
|
||||
ksVideo.setVideoChunks(List.of());
|
||||
|
||||
ksVideoRepository.save(ksVideo);
|
||||
logger.info("KSVideo with id {} deleted from VectorStore successfully.", deletionRequest.getKsDocumentId());
|
||||
|
||||
Reference in New Issue
Block a user