Skip to content

Commit 0c90671

Browse files
committed
๐Ÿ› ์›Œ์ผ€์ด์…˜ ๋๋‚ด๊ธฐ ์˜ค๋ฅ˜ ์ˆ˜์ •
1 parent f396bad commit 0c90671

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

โ€ŽWorkade/Views&ViewModels/Workation/WorkationViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,7 @@ final class WorkationViewController: UIViewController {
201201
Task { [weak self] in
202202
guard let self = self, var user = UserManager.shared.user.value else { return }
203203
try await FirestoreDAO.shared.deleteActiveUser(userID: user.id, region: self.region)
204-
user.activeRegion = nil
205-
try await FirestoreDAO.shared.updateUser(user: user)
204+
try await FirestoreDAO.shared.createUser(user: User(id: user.id, name: user.name, email: user.email, job: user.job, stickers: user.stickers, activeRegion: nil))
206205
}
207206

208207
UIView.animate(withDuration: 0.3, delay: 0) { [weak self] in

0 commit comments

Comments
ย (0)