MCPcopy
hub / github.com/songquanpeng/one-api / deleteHistoryLogs

Function deleteHistoryLogs

web/air/src/components/OperationSetting.js:147–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 };
146
147 const deleteHistoryLogs = async () => {
148 console.log(inputs);
149 const res = await API.delete(`/api/log/?target_timestamp=${Date.parse(historyTimestamp) / 1000}`);
150 const { success, message, data } = res.data;
151 if (success) {
152 showSuccess(`${data} 条日志已清理!`);
153 return;
154 }
155 showError('日志清理失败:' + message);
156 };
157
158 return (
159 <Grid columns={1}>

Callers

nothing calls this directly

Calls 2

showSuccessFunction · 0.90
showErrorFunction · 0.90

Tested by

no test coverage detected