feat: update users

This commit is contained in:
hanif salafi 2025-04-07 09:41:53 +07:00
parent 74da9d3e90
commit 8a30851895
5 changed files with 7 additions and 6 deletions

View File

@ -197,7 +197,7 @@ func (_i *feedbacksController) Delete(c *fiber.Ctx) error {
// FeedbackMonthlyStats Feedbacks // FeedbackMonthlyStats Feedbacks
// @Summary FeedbackMonthlyStats Feedbacks // @Summary FeedbackMonthlyStats Feedbacks
// @Description API for FeedbackMonthlyStats of Feedbacks // @Description API for FeedbackMonthlyStats of Feedbacks
// @Tags Articles // @Tags Feedbacks
// @Security Bearer // @Security Bearer
// @Param Authorization header string true "Insert your access token" default(Bearer <Add access token here>) // @Param Authorization header string true "Insert your access token" default(Bearer <Add access token here>)
// @Param year query int false "year" // @Param year query int false "year"

View File

@ -415,8 +415,9 @@ func (_i *usersService) EmailValidationPreLogin(req request.UserEmailValidationR
return nil, fmt.Errorf("username / password incorrect") return nil, fmt.Errorf("username / password incorrect")
} }
isTrue := true _i.Log.Info().Interface("data user", findUser).Msg("")
if findUser.IsEmailUpdated != &isTrue {
if *findUser.IsEmailUpdated != true {
message := "Continue to setup email" message := "Continue to setup email"
msgResponse = &message msgResponse = &message
} else { } else {

View File

@ -4852,7 +4852,7 @@ const docTemplate = `{
], ],
"description": "API for FeedbackMonthlyStats of Feedbacks", "description": "API for FeedbackMonthlyStats of Feedbacks",
"tags": [ "tags": [
"Articles" "Feedbacks"
], ],
"summary": "FeedbackMonthlyStats Feedbacks", "summary": "FeedbackMonthlyStats Feedbacks",
"parameters": [ "parameters": [

View File

@ -4841,7 +4841,7 @@
], ],
"description": "API for FeedbackMonthlyStats of Feedbacks", "description": "API for FeedbackMonthlyStats of Feedbacks",
"tags": [ "tags": [
"Articles" "Feedbacks"
], ],
"summary": "FeedbackMonthlyStats Feedbacks", "summary": "FeedbackMonthlyStats Feedbacks",
"parameters": [ "parameters": [

View File

@ -4103,7 +4103,7 @@ paths:
- Bearer: [] - Bearer: []
summary: FeedbackMonthlyStats Feedbacks summary: FeedbackMonthlyStats Feedbacks
tags: tags:
- Articles - Feedbacks
/magazine-files: /magazine-files:
get: get:
description: API for getting all MagazineFiles description: API for getting all MagazineFiles