mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
replace prefix code
This commit is contained in:
parent
8c28f983cb
commit
4b15494107
|
|
@ -59,7 +59,7 @@ export const getAllKeysByPrefix = async (key: string) => {
|
|||
cursor = nextCursor;
|
||||
|
||||
for (const k of keys) {
|
||||
results.push(k.startsWith(prefix) ? k.slice(prefix.length) : k);
|
||||
results.push(key.replace(FASTGPT_REDIS_PREFIX, ''));
|
||||
}
|
||||
} while (cursor !== '0');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue