fix: not able to filter by nullable values (#2580)

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Jérémy M
2023-11-20 15:46:20 +01:00
committed by GitHub
parent 9516e69522
commit 3ad30a0498
14 changed files with 46 additions and 5 deletions

View File

@ -50,7 +50,7 @@ export const SettingsDevelopersApiKeys = () => {
const { foundObjectMetadataItem } = useFindOneObjectMetadataItem({
objectNameSingular: 'apiKey',
});
const filter = { revokedAt: { eq: null } };
const filter = { revokedAt: { is: 'NULL' } };
useFindManyObjectRecords({
objectNamePlural: 'apiKeys',
filter,