core: bug fixes

This commit is contained in:
undefined committed 2026-06-26 20:22:16 +08:00
1 parent 12bbbcf5db
commit 4b806711ef
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -159,11 +159,11 @@ export async function load(ctx: Context) {
console.log('Hydro CLI interactive mode. Type `exit` or press Ctrl+D to exit.');
try {
while (true) {
const line = await rl.question('hydrooj> ');
const line = await rl.question('hydrooj> '); // eslint-disable-line no-await-in-loop
if (!line.trim()) continue;
if (['exit', 'quit'].includes(line.trim())) break;
try {
await cli(parseInteractiveArgv(line));
await cli(parseInteractiveArgv(line)); // eslint-disable-line no-await-in-loop
} catch (e) {
console.error(e.message);
}
+1
View File
@@ -10,3 +10,4 @@ function hash(password: string, salt: string): Promise<string> {
}
export default hash;
global.Hydro.module.hash.hydro = hash;