mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Prettier fixes
This commit is contained in:
parent
53c536f0d4
commit
48ca13818f
1 changed files with 6 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ export const labelsResolver = authorized<LabelsSuccess, LabelsError>(
|
|||
labels: {
|
||||
createdAt: 'DESC',
|
||||
},
|
||||
}
|
||||
},
|
||||
})
|
||||
if (!user) {
|
||||
return {
|
||||
|
|
@ -288,11 +288,13 @@ export const updateLabelResolver = authorized<
|
|||
const result = await AppDataSource.transaction(async (t) => {
|
||||
await setClaims(t, uid)
|
||||
return await t.getRepository(Label).update(
|
||||
{ id: labelId }, {
|
||||
{ id: labelId },
|
||||
{
|
||||
name: name,
|
||||
description: description || undefined,
|
||||
color: color,
|
||||
})
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
log.info('Updating a label', {
|
||||
|
|
@ -319,4 +321,4 @@ export const updateLabelResolver = authorized<
|
|||
errorCodes: [UpdateLabelErrorCode.BadRequest],
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue