fix(services/dictionaries): properly await file text in readDictionary
This commit is contained in:
@@ -27,7 +27,7 @@ export const readDictionary = async (name: string): Promise<string> => {
|
||||
if (!(await file.exists())) {
|
||||
throw new Error(`Dictionary "${name === "" || name === undefined ? "undefined" : name}" does not exist`)
|
||||
}
|
||||
return Bun.file(path).text()
|
||||
return await file.text()
|
||||
}
|
||||
|
||||
export const listDictionaries = async (): Promise<string[]> => {
|
||||
|
||||
Reference in New Issue
Block a user