fix: update GetLineById method to use 'id' parameter instead of 'line_id'
Deploy Application / deploy (push) Successful in 20s
Details
Deploy Application / deploy (push) Successful in 20s
Details
This commit is contained in:
parent
360db2526b
commit
472bcd5d3e
|
|
@ -30,7 +30,7 @@ type inventoryReturnController struct {
|
||||||
|
|
||||||
// GetLineById implements InventoryReturnController.
|
// GetLineById implements InventoryReturnController.
|
||||||
func (c *inventoryReturnController) GetLineById(ctx *gin.Context) {
|
func (c *inventoryReturnController) GetLineById(ctx *gin.Context) {
|
||||||
lineId := ctx.Param("line_id")
|
lineId := ctx.Param("id")
|
||||||
line, err := c.returnService.GetLineById(ctx, lineId)
|
line, err := c.returnService.GetLineById(ctx, lineId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
res := utils.BuildResponseFailed(dto.MESSAGE_FAILED_GET_INVENTORY_RETURN_LINE, err.Error(), nil)
|
res := utils.BuildResponseFailed(dto.MESSAGE_FAILED_GET_INVENTORY_RETURN_LINE, err.Error(), nil)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue