Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

You will need to have [Postgres](https://www.postgresql.org/) installed to run test and development databases.

Once Postgres is install, you should have access to the `psql` command.
Once Postgres is installed, you should have access to the `psql` command.

### Initialize database

Expand Down
4 changes: 2 additions & 2 deletions Test_Runner_Story.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@
},
{
"key": "testBookAuthor",
"value": "bar",
"value": "פלוני אלמוני",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This says "John Doe" essentially FWIW)

"type": "string"
},
{
Expand All @@ -908,4 +908,4 @@
"value": ""
}
]
}
}
6 changes: 5 additions & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ export const filterObjStringsForProfanity = <T extends { [key: string]: any }>(
Object.entries(obj).forEach(([k, v]) => {
filtered[k] = v
if (typeof v === 'string') {
filtered[k] = filterProfanity(v)
try {
filtered[k] = filterProfanity(v)
} catch (err) {
console.error(`Couldn't check ${v} for profanity.`);
};
}
})
return filtered as T
Expand Down