From 071915caa8995ede83c5f8b65393b41057189f59 Mon Sep 17 00:00:00 2001
From: myunsyeya <myunsyeya@ajou.ac.kr>
Date: Sun, 8 Dec 2024 00:56:46 +0900
Subject: [PATCH] hotfix: request body name -> newName

---
 src/api/my/updatePCName.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/my/updatePCName.js b/src/api/my/updatePCName.js
index f81d155..042a609 100644
--- a/src/api/my/updatePCName.js
+++ b/src/api/my/updatePCName.js
@@ -4,7 +4,7 @@ const updatePCName = async (pcId, newName) => {
   console.log(pcId, newName);
   try {
     const response = await axios.patch(`/my/pc/${pcId}/name`, { 
-      name: newName.trim() 
+      newName: newName.trim() 
     });
 
     return response.data;
-- 
GitLab