it('should catch errors when saving log entry on db', async () => {
    jest.spyOn(errorLog, 'error').mockImplementation(() => ({}));
    jest
      .spyOn(activitylog, 'save')
      .mockImplementation(async () => Promise.reject(new Error('activitylog save error')));