Prettier fixes

This commit is contained in:
Jackson Harper
2022-04-06 10:45:01 -07:00
parent 53c536f0d4
commit 48ca13818f

View File

@ -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],
}
}
})
})