Skip to content

Commit 4fdb7e7

Browse files
Merge pull request #391 from Java-Discord/dynxsty/fix_help_xp
2 parents fff4066 + e9488f1 commit 4fdb7e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/javadiscord/javabot/systems/help/dao/HelpAccountRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public int getTotalAccounts() throws DataAccessException {
104104
* @throws DataAccessException If an error occurs.
105105
*/
106106
public void removeExperienceFromAllAccounts(double change, int min, int max) throws DataAccessException {
107-
long rows = jdbcTemplate.execute("UPDATE help_account SET experience = GREATEST(experience - LEAST(GREATEST(experience * (1 - ? / 100), ?), ?), 0)",new CallableStatementCallback<Long>() {
107+
long rows = jdbcTemplate.execute("UPDATE help_account SET experience = GREATEST(experience - LEAST(GREATEST(experience * (? / 100), ?), ?), 0)",new CallableStatementCallback<Long>() {
108108

109109
@Override
110110
public Long doInCallableStatement(CallableStatement cs) throws SQLException, DataAccessException {

0 commit comments

Comments
 (0)