mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: bug fixes
This commit is contained in:
2 files changed
+3
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
@@ -10,3 +10,4 @@ function hash(password: string, salt: string): Promise<string> {
|
||||
}
|
||||
|
||||
export default hash;
|
||||
global.Hydro.module.hash.hydro = hash;
|
||||
Reference in new issue
Block a user