diff --git a/packages/remix-deno/sessions/fileStorage.ts b/packages/remix-deno/sessions/fileStorage.ts index 5b76271228f..1595b69f7b0 100644 --- a/packages/remix-deno/sessions/fileStorage.ts +++ b/packages/remix-deno/sessions/fileStorage.ts @@ -32,7 +32,7 @@ export function createFileSessionStorage({ }: FileSessionStorageOptions): SessionStorage { return createSessionStorage({ cookie, - async createData(data, expires) { + createData: async (data, expires) => { const content = JSON.stringify({ data, expires }); while (true) { @@ -65,7 +65,7 @@ export function createFileSessionStorage({ } } }, - async readData(id) { + readData: async (id) => { try { const file = getFile(dir, id); const content = JSON.parse(await Deno.readTextFile(file)); @@ -87,13 +87,13 @@ export function createFileSessionStorage({ return null; } }, - async updateData(id, data, expires) { + updateData: async (id, data, expires) => { const content = JSON.stringify({ data, expires }); const file = getFile(dir, id); await Deno.mkdir(path.dirname(file), { recursive: true }).catch(() => {}); await Deno.writeTextFile(file, content); }, - async deleteData(id) { + deleteData: async (id) => { try { await Deno.remove(getFile(dir, id)); } catch (error) {