Skip to content

Commit

Permalink
fix: actions on file (delete, replay, archive replay)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Jul 24, 2024
1 parent 1827b32 commit 9ef1a13
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public String downloadBdBAS(Model model) {
* @return
*/
public String toRestoreBAS(Model model) {
return restore(model, "'R'", "managementSandbox.batch.replay.files");
return restore(model, "R", "managementSandbox.batch.replay.files");
}

/**
Expand All @@ -117,7 +117,7 @@ public String toRestoreBAS(Model model) {
* @return
*/
public String toRestoreArchiveBAS(Model model) {
return restore(model, "'RA'", "managementSandbox.batch.replay.archives");
return restore(model, "RA", "managementSandbox.batch.replay.archives");
}

private String restore(Model model, String code, String messageOk) {
Expand Down Expand Up @@ -193,7 +193,7 @@ private void copyDownloadedFileToS3(File fOut) {
public String toDeleteBAS(Model model) {

loggerDispatcher.trace("*** Marquage de fichier à supprimer ***", LOGGER);
ArcPreparedStatementBuilder updateToDelete = dao.queryUpdateToDelete(views.getViewFichierBAS(), "'1'");
ArcPreparedStatementBuilder updateToDelete = dao.queryUpdateToDelete(views.getViewFichierBAS(), "1");
String message;
try {
dao.execQueryUpdateToDelete(updateToDelete);
Expand Down Expand Up @@ -226,7 +226,7 @@ public String toDeleteBAS(Model model) {
public String undoActionBAS(Model model) {

loggerDispatcher.trace("*** Suppression du marquage de fichier à supprimer ***", LOGGER);
ArcPreparedStatementBuilder updateToDelete = dao.queryUpdateToDelete(views.getViewFichierBAS(), "null");
ArcPreparedStatementBuilder updateToDelete = dao.queryUpdateToDelete(views.getViewFichierBAS(), null);
try {
dao.execQueryUpdateToDelete(updateToDelete);
} catch (ArcException e) {
Expand Down

0 comments on commit 9ef1a13

Please sign in to comment.