if(typeofhaystack!=='string'&&typeofhaystack!=='object')return{err:newTypeError('email or nickname is not a string|object::database.getUser('+haystack+')',module.filename)};
if(typeofhaystack!=='string'&&typeofhaystack!=='object')return{err:newTypeError('haystack is not a string|object::database.getUser('+haystack+')',module.filename)};
if(typeofid!=='string')return{err:newTypeError('id is not a string::database.updateUser('+id+','+JSON.stringify(obj)+')',module.filename)};
if(!(typeofid==='string'||idinstanceofmongoose.Types.ObjectId))return{err:newTypeError('id is not a string::database.updateUser('+id+','+JSON.stringify(obj)+')',module.filename)};
if(typeofobj!=='object')return{err:newTypeError('obj is not an object::database.updateUser('+id+','+JSON.stringify(obj)+')',module.filename)};
if(typeofid!=='string')return{err:newTypeError('id is not a string::database.updateNewAction('+id+','+JSON.stringify(options)+')',module.filename)};
if(!(typeofid==='string'||idinstanceofmongoose.Types.ObjectId))return{err:newTypeError('id is not a string::database.updateNewAction('+id+','+JSON.stringify(options)+')',module.filename)};
if(typeofoptions!=='object'&&options!==null)return{err:newTypeError('obj is not an object::database.updateUserProfile('+id+','+JSON.stringify(obj)+')',module.filename)};
if(typeofid!=='string')return{err:newTypeError('id is not a string::database.updateGroup('+id+','+JSON.stringify(obj)+')',module.filename)};
if(!(typeofid==='string'||idinstanceofmongoose.Types.ObjectId))return{err:newTypeError('id is not a string::database.updateGroup('+id+','+JSON.stringify(obj)+')',module.filename)};
if(typeofobj!=='object')return{err:newTypeError('obj is not an object::database.updateGroup('+id+','+JSON.stringify(obj)+')',module.filename)};