mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
remove debug console.logs
This commit is contained in:
parent
cf4dc8627b
commit
1f04a7fcdf
1 changed files with 0 additions and 3 deletions
|
|
@ -38,15 +38,12 @@ const mediaController: AppController = async (c) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateMediaDescriptionController: AppController = async (c) => {
|
const updateMediaDescriptionController: AppController = async (c) => {
|
||||||
console.log('in media description update controller');
|
|
||||||
const result = mediaDescriptionUpdateSchema.safeParse(await parseBody(c.req.raw));
|
const result = mediaDescriptionUpdateSchema.safeParse(await parseBody(c.req.raw));
|
||||||
console.log(result);
|
|
||||||
if (!result.success) {
|
if (!result.success) {
|
||||||
return c.json({ error: 'Bad request.', schema: result.error }, 422);
|
return c.json({ error: 'Bad request.', schema: result.error }, 422);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const { description } = result.data;
|
const { description } = result.data;
|
||||||
console.log(description);
|
|
||||||
if (!await setMediaDescription(c.req.param('id'), description)) {
|
if (!await setMediaDescription(c.req.param('id'), description)) {
|
||||||
return c.json({ error: 'File with specified ID not found.' }, 404);
|
return c.json({ error: 'File with specified ID not found.' }, 404);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue