Skip to content

Commit

Permalink
Add catch to diff tracking for posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen committed Dec 11, 2024
1 parent c4427ae commit 53a8a48
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ export const postDatabaseEntry: STUDIOCMS_SDK['POST']['databaseEntry'] = {
pageContentStart: diffData.pageContentStart,
pageMetaData: JSON.stringify(diffData.pageMetaData || {}),
})
.returning();
.returning()
.catch((error) => {
throw new Error(error);
});
},
};

Expand Down

0 comments on commit 53a8a48

Please sign in to comment.