Skip to content

Commit 41b0938

Browse files
fix: Spelling error
1 parent ccb7d97 commit 41b0938

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/apps/system/api/assistant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async def ui(session: SessionDep, data: str = Form(), files: List[UploadFile] =
116116
if flag_name == 'logo' or flag_name == 'float_icon':
117117
SQLBotFileUtils.check_file(file=file, file_types=[".jpg", ".jpeg", ".png", ".svg"], limit_file_size=(10 * 1024 * 1024))
118118
if config_obj.get(flag_name):
119-
SQLBotFileUtils.detete_file(config_obj.get(flag_name))
119+
SQLBotFileUtils.delete_file(config_obj.get(flag_name))
120120
file_id = await SQLBotFileUtils.upload(file)
121121
ui_schema_dict[flag_name] = file_id
122122
else:
@@ -126,7 +126,7 @@ async def ui(session: SessionDep, data: str = Form(), files: List[UploadFile] =
126126
file_val = config_obj.get(flag_name)
127127
if file_val and not ui_schema_dict.get(flag_name):
128128
config_obj[flag_name] = None
129-
SQLBotFileUtils.detete_file(file_val)
129+
SQLBotFileUtils.delete_file(file_val)
130130

131131
for attr, value in ui_schema_dict.items():
132132
if attr != 'id' and not attr.startswith("__"):

0 commit comments

Comments
 (0)