Skip to content

Commit c9eb1e8

Browse files
w568wppolariss
authored andcommitted
feat(holes): don't update sensitive holes before 2024
Fixes #192.
1 parent cdc6c76 commit c9eb1e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apis/floor/apis.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,11 @@ func ModifyFloorSensitive(c *fiber.Ctx) (err error) {
10391039
return err
10401040
}
10411041

1042+
// ad-hoc logic: if the hole was created before 2024, don't update
1043+
// ref: https://github.com/OpenTreeHole/treehole_next/issues/192
1044+
if hole.CreatedAt.Year() <= 2024 {
1045+
return nil
1046+
}
10421047
now := time.Now()
10431048
hole.CreatedAt = now
10441049
hole.UpdatedAt = now

0 commit comments

Comments
 (0)