Skip to content

Commit

Permalink
менее жесткий автозапрет на смену userpic
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcom committed Apr 11, 2024
1 parent 59c853b commit baa23ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/ru/org/linux/spring/dao/DeleteInfoDao.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void insert(int msgid, User deleter, String reason, int scoreBonus) {

public int getRecentScoreLoss(User user) {
return Math.abs(jdbcTemplate.queryForObject(
"select COALESCE(sum(bonus), 0) from del_info where deldate>CURRENT_TIMESTAMP-'2 week'::interval and " +
"select COALESCE(sum(bonus), 0) from del_info where deldate>CURRENT_TIMESTAMP-'3 days'::interval and " +
"msgid in (select id from comments where comments.userid = ? union all select id from topics where topics.userid = ?)",
Integer.class, user.getId(), user.getId()));
}
Expand Down

0 comments on commit baa23ad

Please sign in to comment.