Applied suggested async and await changes

Signed-off-by: Andre Wanlin <awanlin@rapidrtc.com>
This commit is contained in:
Andre Wanlin
2021-10-08 11:11:10 -05:00
parent 0b0876b0da
commit e290590517
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -48,11 +48,11 @@ Here's how to get the backend up and running:
import { Router } from 'express';
import type { PluginEnvironment } from '../types';
export default async function createPlugin({
export default function createPlugin({
logger,
config,
}: PluginEnvironment): Promise<Router> {
return await createRouter({ logger, config });
return createRouter({ logger, config });
}
```