Skip to content

Commit

Permalink
Merge pull request #353 from GiganticMinecraft/fix/350
Browse files Browse the repository at this point in the history
ユーザーがログインしたときにroleがStandardUserに上書きされるのを修正
  • Loading branch information
rito528 authored Nov 17, 2023
2 parents 7ee0d8c + 09dff6c commit 8f6a8df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/infra/resource/src/database/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ impl UserDatabase for ConnectionPool {
DatabaseBackend::MySql,
"INSERT INTO users (uuid, name, role) VALUES (?, ?, ?)
ON DUPLICATE KEY UPDATE
name = VALUES(name),
role = VALUES(role)",
name = VALUES(name)",
[
user.id.to_string().into(),
user.name.to_owned().into(),
Expand Down

0 comments on commit 8f6a8df

Please sign in to comment.