twenty/packages/twenty-server
Weiko 64b8fd544c
Fix mutations with camelCase table names (#8740)
## Context
Some mutations are not working properly, workspaceMember soft deletion
for example. workspaceMember being a camelCase table name, it's probably
not propagated properly to pgql (which needs double quote for the table
name to keep it as camelCase)

I didn't have time to dig too much but if the `where` is before
`softDelete`, the query is `WHERE workspaceMember.id = $1` while if it's
after, the query becomes `WHERE id = $1`.
Probably due to the fact that once you call delete/softDelete/update,
the standard builder (SelectQueryBuilder) becomes a
DeleteQueryBuilder/etc... and filters are not handled the same way.
2024-11-26 10:47:13 +01:00
..
@types feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
patches Improve demo seed (#7125) 2024-09-18 17:35:08 +02:00
scripts Improve flaky storybook test (#8515) 2024-11-15 14:29:39 +01:00
src Fix mutations with camelCase table names (#8740) 2024-11-26 10:47:13 +01:00
test/integration Add integration tests for /metadata + fix relation deletion (#8706) 2024-11-26 10:00:36 +01:00
.env.example Begin moving to postgres spilo + adding pgvector (#8309) 2024-11-15 09:38:30 +01:00
.env.test Begin moving to postgres spilo + adding pgvector (#8309) 2024-11-15 09:38:30 +01:00
.eslintrc.cjs feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
.gitignore feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
.prettierignore Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.prettierrc Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.swcrc feat: twenty orm for standard and custom objects (#6178) 2024-07-19 18:23:52 +02:00
jest-integration.config.ts Integration test : Sync mode + db reset option + cleaning (#8376) 2024-11-07 17:22:47 +01:00
jest.config.ts Fix all broken CIs (#7439) 2024-10-05 00:23:23 +02:00
nest-cli.json 6653 serverless functions store and use environment variables in serverless function scripts (#7390) 2024-10-03 13:56:17 +02:00
package.json Bump 0.34.0-canary (#8675) 2024-11-22 11:53:33 +01:00
project.json Integration test : Sync mode + db reset option + cleaning (#8376) 2024-11-07 17:22:47 +01:00
tsconfig.build.json chore: set up twenty-emails config so build isn't needed in development (#3619) 2024-01-29 06:17:12 -03:00
tsconfig.json feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00
tsconfig.scripts.json feat: add integration tests (#6923) 2024-09-20 11:02:52 +02:00