Fix get available tables (#4873)
Endpoint is broken since we now use `Remote` as a suffix for remote table names. This PR: - creates a common function to calculate the name of the remote table - use it in the `findAvailableRemotePostgresTables` to know if a table has been synced or not Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
@ -0,0 +1,4 @@
|
||||
import { camelCase } from 'src/utils/camel-case';
|
||||
|
||||
export const getRemoteTableName = (distantTableName: string) =>
|
||||
`${camelCase(distantTableName)}Remote`;
|
||||
Reference in New Issue
Block a user