Fix 200 response exception builder
Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
@@ -118,5 +118,12 @@ func Magic(c *gin.Context) {
|
||||
)
|
||||
}
|
||||
|
||||
utils.HttpResponse(c, 200, "", "magic link sent")
|
||||
errorCode := new(exception.Builder).
|
||||
SetStatus(exception.StatusServer).
|
||||
SetService(exception.ServiceAuth).
|
||||
SetEndpoint(exception.EndpointAuthServiceMagic).
|
||||
SetType(exception.TypeCommon).
|
||||
SetOriginal(exception.CommonSuccess).
|
||||
Build()
|
||||
utils.HttpResponse(c, 200, errorCode)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user