feat: add async suffix eslint rule (#485)

This commit is contained in:
Manuel
2024-05-18 12:25:33 +02:00
committed by GitHub
parent 5723295856
commit dcaff1d91c
60 changed files with 296 additions and 225 deletions

View File

@@ -4,7 +4,9 @@ import { api } from "@homarr/api/server";
import type { WidgetProps } from "../definition";
export default async function getServerData({ options }: WidgetProps<"app">) {
export default async function getServerDataAsync({
options,
}: WidgetProps<"app">) {
try {
const app = await api.app.byId({ id: options.appId });
return { app };