Skip to content
Snippets Groups Projects
Commit 21991442 authored by Agsha Athalla Nurkareem's avatar Agsha Athalla Nurkareem
Browse files

fix: patch antrian

parent 347f4d47
Branches
1 merge request!36Dev
......@@ -413,7 +413,7 @@ func PatchAntrian(c *gin.Context) {
switch changeBy {
case "id":
err := antrian2.ChangeStatusAntrianById(patchInput.Key.(int), patchInput.Value.(string))
err := antrian2.ChangeStatusAntrianById(patchInput.Key.(string), patchInput.Value.(string))
if err != nil {
c.JSON(http.StatusInternalServerError, common.Response{
......
......@@ -4,7 +4,7 @@ import (
"seno-medika.com/config/db"
)
func ChangeStatusAntrianById(antrianID int, status string) error {
func ChangeStatusAntrianById(antrianID string, status string) error {
_, err := db.DB.Exec(
`UPDATE antrian
SET status = $1
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment