mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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.');
|
console.log('Hydro CLI interactive mode. Type `exit` or press Ctrl+D to exit.');
|
||||||
try {
|
try {
|
||||||
while (true) {
|
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 (!line.trim()) continue;
|
||||||
if (['exit', 'quit'].includes(line.trim())) break;
|
if (['exit', 'quit'].includes(line.trim())) break;
|
||||||
try {
|
try {
|
||||||
await cli(parseInteractiveArgv(line));
|
await cli(parseInteractiveArgv(line)); // eslint-disable-line no-await-in-loop
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e.message);
|
console.error(e.message);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,3 +10,4 @@ function hash(password: string, salt: string): Promise<string> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default hash;
|
export default hash;
|
||||||
|
global.Hydro.module.hash.hydro = hash;
|
||||||
Reference in new issue
Block a user