fix(services/dictionaries): properly await file text in readDictionary

This commit is contained in:
2026-02-22 19:43:07 -06:00
parent b7dcd618ba
commit 322e3bc8db

View File

@@ -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[]> => {