refactor(media-generators): simplify 'name' assignment in fal.ts and wiro.ts
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user