Search for duplicate entires?

Hi Anthony,
so a few things.

first, I forgot to mention that you have to change your function name from c1_beforeInsert to be
yourCollectionName _beforeInsert.

you need to replace yourCollectionName with the name of the collection data is inserted to.

secondly, please paste the entire code from this file so I can take a look and guide you further.
thanks!

p.s.
edited the code snippet above to reflect the need to change the function name.