Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
Merge pull request #83 from Sports-day/feature/disable-icons
Browse files Browse the repository at this point in the history
fix: 一時的にアイコンの更新をできないように変更
  • Loading branch information
testusuke authored Apr 25, 2024
2 parents c1a0718 + 9bd7239 commit 81c6452
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/main/kotlin/net/sportsday/services/AuthenticationService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,17 @@ object AuthenticationService {
user.name = userinfo.name

// if there is changes in picture, update it
if (picture != null) {
if (user.picture == null) {
val createdPictureEntity = ImageEntity.new {
this.data = picture
this.createdAt = LocalDateTime.now()
}
user.picture = createdPictureEntity
} else {
user.picture!!.data = picture
}
}
// if (picture != null) {
// if (user.picture == null) {
// val createdPictureEntity = ImageEntity.new {
// this.data = picture
// this.createdAt = LocalDateTime.now()
// }
// user.picture = createdPictureEntity
// } else {
// user.picture!!.data = picture
// }
// }

// update timestamp
user.updatedAt = LocalDateTime.now()
Expand Down

0 comments on commit 81c6452

Please sign in to comment.