Skip to content
This repository was archived by the owner on Mar 3, 2024. It is now read-only.

Commit 63b527f

Browse files
committed
fix: mode
1 parent e81a0d8 commit 63b527f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

controllers/userController.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ func (databaseClient Database) UpdateUser(ctx *fiber.Ctx) error {
246246
"collegeyear": payload.CollegeYear,
247247
"birthdate": payload.BirthDate,
248248
"github": payload.Github,
249+
"mode": payload.Mode,
249250
"image": url,
250251
"isactive": false,
251252
"iscanshare": false,

models/userModel.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ type UpdateUserRequest struct {
5252
RegNo *string `form:"redNo,omitempty"`
5353
Gender *string `form:"gender,omitempty"`
5454
BirthDate *string `form:"birthDate,omitempty"`
55+
Mode *string `form:"mode,omitempty"`
5556
VerifyOtp *string `form:"verifyOtp,omitempty"`
5657
Github *string `form:"github,omitempty"`
5758
QrData *string `form:"qrData,omitempty"`

0 commit comments

Comments
 (0)