Skip to content

Commit 3d1994b

Browse files
author
Kerwin
committed
fix: clear cache after delete key (Close #197)
1 parent 05685d1 commit 3d1994b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

service/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,7 @@ router.post('/setting-key-status', rootAuth, async (req, res) => {
933933
try {
934934
const { id, status } = req.body as { id: string; status: Status }
935935
await updateApiKeyStatus(id, status)
936+
clearApiKeyCache()
936937
res.send({ status: 'Success', message: '更新成功 | Update successfully' })
937938
}
938939
catch (error) {

0 commit comments

Comments
 (0)