UPDATE: Fix some bug
All checks were successful
Build and Release / release (push) Successful in 1m6s
All checks were successful
Build and Release / release (push) Successful in 1m6s
This commit is contained in:
@@ -164,7 +164,14 @@ func (v *verificationRepository) Create(ctx context.Context, params sqlc.CreateU
|
|||||||
|
|
||||||
func (v *verificationRepository) UpdateStatus(ctx context.Context, params sqlc.UpdateUserVerificationStatusParams) error {
|
func (v *verificationRepository) UpdateStatus(ctx context.Context, params sqlc.UpdateUserVerificationStatusParams) error {
|
||||||
err := v.q.UpdateUserVerificationStatus(ctx, params)
|
err := v.q.UpdateUserVerificationStatus(ctx, params)
|
||||||
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
cacheId := fmt.Sprintf("verification:id:%s", convert.UUIDToString(params.ID))
|
||||||
|
_ = v.c.Del(ctx, cacheId)
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *verificationRepository) Delete(ctx context.Context, id pgtype.UUID) error {
|
func (v *verificationRepository) Delete(ctx context.Context, id pgtype.UUID) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user