Skip to content

Commit

Permalink
corregir query estados hoja de vida
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanSerkovich committed Jun 9, 2024
1 parent 759d8d4 commit 597c3a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public interface HojaDeVidaRepository extends ReactiveMongoRepository<HojaDeVida

Mono<HojaDeVidaEntity> findFirstByUsernameAndEstadoHojaDeVida(String username, String estadoHojaDeVida);

@Query("{ 'username' : ?0, 'estadoHojaDeVida' : { $ne: 'AT' } }")
@Query("{ 'username' : ?0, 'estadoHojaDeVida' : { $ne: 'NU' } }")
@Update("{'$set': {'estadoHojaDeVida': ?1 }}")
Mono<Void> actualizarEstadoHojadeVidaPorUsername(String username, String estadoHojaDeVida);
}

0 comments on commit 597c3a7

Please sign in to comment.