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,9 +164,16 @@ func (v *verificationRepository) Create(ctx context.Context, params sqlc.CreateU
|
||||
|
||||
func (v *verificationRepository) UpdateStatus(ctx context.Context, params sqlc.UpdateUserVerificationStatusParams) error {
|
||||
err := v.q.UpdateUserVerificationStatus(ctx, params)
|
||||
if err != nil {
|
||||
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 {
|
||||
err := v.q.DeleteUserVerification(ctx, id)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user