mongoose-shortid
mongoose-shortid copied to clipboard
The fieldname was unpurposely created as a global, causing weird mixu…
…ps of fields while concurrently running the code. Fixed it by declaring 'use strict' and defining 'var key', at the same time declaring the attemptSave as a function variable