Compare commits

..

No commits in common. "ddc115f4a884fa7991518f02fa83da2266e7fd7e" and "2b39d32799f25cf8031a2c1184cd9ae5f18f62bf" have entirely different histories.

3 changed files with 5 additions and 5 deletions

View File

@ -60,7 +60,7 @@ func (server *Server) renewAccessToken(ctx *gin.Context) {
}
if time.Now().After(refreshPayload.ExpiredAt) {
err := fmt.Errorf("Expired session")
err := fmt.Errorf("Exprired session")
ctx.JSON(http.StatusUnauthorized, errorResponse(err, ""))
return
}

View File

@ -177,10 +177,10 @@ func (server *Server) loginUser(ctx *gin.Context) {
RefreshTokenExpiresAt: refreshTokenPayload.ExpiredAt,
}
res := BaseApiRespond("succes", userLoginResponse{
res := userLoginResponse{
UserTokenResponse: tokenResponse,
UserMerchantResponse: newUserMerchantResponse(user),
})
}
ctx.JSON(http.StatusOK, res)
}

View File

@ -10,8 +10,8 @@ import (
)
type SaleOrderProduct struct {
ProductID uuid.UUID `json:"id"`
ProductName string `json:"name"`
ProductID uuid.UUID `json:"product_id"`
ProductName string `json:"product_name"`
Quantity float64 `json:"quantity"`
Sub_total float64 `json:"sub_total"`
Price float64 `json:"price"`