Skip to content

Commit

Permalink
[backend] Fix migration on full text search (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomuDeuxfois authored Apr 17, 2024
1 parent d27b601 commit fdfe1b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import java.sql.Statement;

@Component
public class V2_84__Full_text_search extends BaseJavaMigration {
public class V2_85__Full_text_search extends BaseJavaMigration {

@Override
public void migrate(Context context) throws Exception {
Expand Down
2 changes: 1 addition & 1 deletion openbas-injectors
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ public Instant computeInjectDate(Instant source, int speed) {
public Optional<Instant> getDate() {
if (this.getExercise() == null && this.getScenario() == null) {
log.log(Level.SEVERE, "Exercise OR Scenario should not be null");
return Optional.empty();
}

if (this.getScenario() != null) {
Expand Down

0 comments on commit fdfe1b5

Please sign in to comment.