🚸 (editor) Improve typebot updatedAt detection

Make sure the database is the single source of truth
This commit is contained in:
Baptiste Arnaud
2023-02-16 20:43:28 +01:00
parent 618eb8a882
commit 4a0dd0b3dd
4 changed files with 12 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ export const patchTypebotQuery = async (
id: string,
typebot: Partial<Typebot>
) =>
sendRequest({
sendRequest<{ typebot: Typebot }>({
url: `/api/typebots/${id}`,
method: 'PATCH',
body: typebot,