refactor(media-generators): simplify 'name' assignment in fal.ts and wiro.ts

This commit is contained in:
Fatih Kadir Akın
2025-12-26 15:29:35 +03:00
parent 68e5d4e387
commit 4dfec4fca5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ function parseModels(envVar: string | undefined, type: "image" | "video"): Media
.filter(Boolean)
.map((id) => ({
id,
name: id.split("/").pop() || id,
name: id,
type,
}));
}
+1 -1
View File
@@ -30,7 +30,7 @@ function parseModels(envVar: string | undefined, type: "image" | "video"): Media
.filter(Boolean)
.map((id) => ({
id,
name: id.split("/").pop() || id,
name: id,
type,
}));
}