feat : update
This commit is contained in:
@@ -153,6 +153,7 @@ export async function updateGuideBasics(guideId: string, input: unknown) {
|
||||
...(data.posterArtMediaId !== undefined ? { posterArtMediaId } : {}),
|
||||
...(data.posterArtOffsetX !== undefined ? { posterArtOffsetX: Math.round(data.posterArtOffsetX) } : {}),
|
||||
...(data.posterArtOffsetY !== undefined ? { posterArtOffsetY: Math.round(data.posterArtOffsetY) } : {}),
|
||||
...(data.posterArtScale !== undefined ? { posterArtScale: Math.round(data.posterArtScale) } : {}),
|
||||
...(data.posterTopColors !== undefined ? { posterTopColors: data.posterTopColors } : {}),
|
||||
...(data.posterBottomColors !== undefined ? { posterBottomColors: data.posterBottomColors } : {}),
|
||||
}).where(eq(guides.id, guideId));
|
||||
@@ -168,6 +169,7 @@ export async function updateGuideBasics(guideId: string, input: unknown) {
|
||||
mediaId: layer.mediaId,
|
||||
amount: Math.round(layer.amount),
|
||||
scale: Math.round(layer.scale),
|
||||
blendMode: layer.blendMode,
|
||||
sortOrder,
|
||||
})));
|
||||
for (const layer of data.posterBleeding) {
|
||||
|
||||
Reference in New Issue
Block a user