Closed ballinette closed 6 years ago
While reading PR #982 , I noticed that:
in method Repository.delete( https://github.com/kuzzleio/kuzzle/blob/master/lib/api/core/models/repositories/repository.js#L197 ), options has following format (cache options and database options are merged):
Repository.delete
options
{ a_cache_option: 'foobar', refresh: request.input.args.refresh }
while in method UserRepository.persist (https://github.com/kuzzleio/kuzzle/blob/master/lib/api/core/models/repositories/userRepository.js#L68 ), it has following format (cache options and database options are separated):
UserRepository.persist
{ cache: { a_cache_option: 'foobar' }, database: { refresh: request.input.args.refresh } }
we should harmonize that...
Issue moved to kuzzleio/kuzzle-backlog #185 via ZenHub
While reading PR #982 , I noticed that:
in method
Repository.delete
( https://github.com/kuzzleio/kuzzle/blob/master/lib/api/core/models/repositories/repository.js#L197 ),options
has following format (cache options and database options are merged):while in method
UserRepository.persist
(https://github.com/kuzzleio/kuzzle/blob/master/lib/api/core/models/repositories/userRepository.js#L68 ), it has following format (cache options and database options are separated):we should harmonize that...