Skip to content

Commit f68294f

Browse files
committed
refactor: remove additional attribute update
1 parent cdb3551 commit f68294f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/br/com/catalog/models/abstract_entity/AuditableEntity.java

-3
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,16 @@ protected void onUpdate() {
3535

3636
public void activate() {
3737
this.status = Status.ACTIVE;
38-
this.updatedAt = LocalDateTime.now();
3938
onStatusChange(Status.ACTIVE);
4039
}
4140

4241
public void disable() {
4342
this.status = Status.INACTIVE;
44-
this.updatedAt = LocalDateTime.now();
4543
onStatusChange(Status.INACTIVE);
4644
}
4745

4846
public void delete() {
4947
this.status = Status.DELETED;
50-
this.updatedAt = LocalDateTime.now();
5148
onStatusChange(Status.DELETED);
5249
}
5350

0 commit comments

Comments
 (0)