feat: docker add to homarr (#1825)

This commit is contained in:
Manuel
2025-01-06 19:37:18 +01:00
committed by GitHub
parent be4e75321a
commit 64cc078b09
8 changed files with 161 additions and 7 deletions

View File

@@ -2,8 +2,8 @@ import type { Database } from "@homarr/db";
import { like } from "@homarr/db";
import { icons } from "@homarr/db/schema";
export const getIconForNameAsync = async (db: Database, name: string) => {
return await db.query.icons.findFirst({
export const getIconForName = (db: Database, name: string) => {
return db.query.icons.findFirst({
where: like(icons.name, `%${name}%`),
});
};