mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
fix: convert to str than filter
prevent empty strings from getting passed to mongodb https://github.com/NodeBB/NodeBB/issues/13007#issuecomment-2560503754
This commit is contained in:
@@ -521,6 +521,7 @@ describe('Hash methods', () => {
|
||||
|
||||
it('should not error if fields is empty array', async () => {
|
||||
await db.deleteObjectFields('someKey', []);
|
||||
await db.deleteObjectField('someKey', []);
|
||||
});
|
||||
|
||||
it('should not error if key is undefined', (done) => {
|
||||
|
||||
Reference in New Issue
Block a user