서승완
Builds for 1 pipeline passed in 11 minutes 57 seconds

fix: check name is empty

......@@ -271,6 +271,8 @@ def update_item(request, file_id):
# Update
if 'name' in received:
if received['name'] == '':
return {'result': False, 'error': '이름을 제대로 입력해주세요.'}
file[0].name = received['name']
if 'parent_id' in received:
file[0].parent_id = received['parent_id']
......
......@@ -148,6 +148,8 @@ def update_me(request):
# Change Name
if 'name' in received:
if len(received['name']) == 0:
return {'result': False, 'error': '이름을 제대로 입력해주세요.'}
user[0].name = received['name']
# Change Password
......