mirror of
https://github.com/hexastack/hexabot
synced 2025-04-08 06:54:24 +00:00
fix: remove unnecessary async
This commit is contained in:
parent
992ae79fc3
commit
ccbe954bef
@ -60,7 +60,7 @@ export class TranslationService extends BaseService<Translation> {
|
||||
const defaultSettings = await plugin?.getDefaultSettings();
|
||||
|
||||
// plugin
|
||||
Object.entries(block.message.args).forEach(async ([l, arg]) => {
|
||||
Object.entries(block.message.args).forEach(([l, arg]) => {
|
||||
const setting = defaultSettings?.find(({ label }) => label === l);
|
||||
if (setting?.translatable) {
|
||||
if (Array.isArray(arg)) {
|
||||
|
Loading…
Reference in New Issue
Block a user