mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
13 lines
332 B
JavaScript
13 lines
332 B
JavaScript
const createDeterministicApi = require('./createDeterministicApi');
|
|
|
|
const isNotDeleted = x => !x.deleted;
|
|
const getCustomerAttr = ({email}) => ({email});
|
|
const getCustomerHashSeed = member => member.email;
|
|
|
|
module.exports = createDeterministicApi(
|
|
'customers',
|
|
isNotDeleted,
|
|
getCustomerAttr,
|
|
getCustomerHashSeed
|
|
);
|