mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
12 lines
209 B
JavaScript
12 lines
209 B
JavaScript
|
const serialize = require('./serialize');
|
||
|
|
||
|
module.exports = (event, model) => {
|
||
|
const payload = {};
|
||
|
|
||
|
if (model) {
|
||
|
Object.assign(payload, serialize(event, model));
|
||
|
}
|
||
|
|
||
|
return payload;
|
||
|
};
|