Skip to content

Commit

Permalink
Fix to update UserEntity & Widget Http
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhello0507 committed Oct 10, 2024
1 parent 6205313 commit 5e3b74d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ class UserEntity(
if (nickname != null) {
this.nickname = nickname
}
if (graduatingYear != null && school?.type != null) {
val currentYear = LocalDateTime.now().year
this.graduatingYear = graduatingYear.coerceIn(currentYear + 1, currentYear + school.type.limit)
if (graduatingYear != null) {
val school = school ?: this.school
if (school?.type != null) {
val currentYear = LocalDateTime.now().year
this.graduatingYear = graduatingYear.coerceIn(currentYear + 1, currentYear + school.type.limit)
}
}
if (school != null) {
this.school = school
Expand Down
5 changes: 5 additions & 0 deletions Graduating-iOS/Graduating-Widget/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down

0 comments on commit 5e3b74d

Please sign in to comment.