fix(api): style mutators causing errors if blank
Some checks failed
Build / build (push) Failing after 37s

This commit is contained in:
Corban-Lee Jones 2025-05-05 23:03:51 +01:00
parent 200716988c
commit 99a59c61e7

View File

@ -47,8 +47,8 @@ export const post = async (request: Request, response: Response) => {
show_footer: show_footer === "on",
show_timestamp: show_timestamp === "on",
colour: colour,
title_mutator: title_mutator,
description_mutator: description_mutator
title_mutator: title_mutator || null,
description_mutator: description_mutator || null
}
});
}
@ -92,8 +92,8 @@ export const patch = async (request: Request, response: Response) => {
show_footer: show_footer === "on",
show_timestamp: show_timestamp === "on",
colour: colour,
title_mutator: title_mutator,
description_mutator: description_mutator
title_mutator: title_mutator || null,
description_mutator: description_mutator || null
}
});
}