feat(api): return only one result on changelog update
This commit is contained in:
parent
92fe2fb32d
commit
23471aa9b0
@ -42,7 +42,7 @@ export const func = async ({
|
|||||||
payload: z.infer<typeof ChangelogUpdateInput>
|
payload: z.infer<typeof ChangelogUpdateInput>
|
||||||
id: string
|
id: string
|
||||||
}) => {
|
}) => {
|
||||||
const result = await db
|
const [result] = await db
|
||||||
.update(changelog)
|
.update(changelog)
|
||||||
.set({
|
.set({
|
||||||
...payload,
|
...payload,
|
||||||
|
Loading…
Reference in New Issue
Block a user