17 lines
458 B
JavaScript
17 lines
458 B
JavaScript
const connectionSerializer = (connection) => {
|
|
return {
|
|
id: connection.id,
|
|
key: connection.key,
|
|
reconnectable: connection.reconnectable,
|
|
appAuthClientId: connection.appAuthClientId,
|
|
formattedData: {
|
|
screenName: connection.formattedData.screenName,
|
|
},
|
|
verified: connection.verified,
|
|
createdAt: connection.createdAt.getTime(),
|
|
updatedAt: connection.updatedAt.getTime(),
|
|
};
|
|
};
|
|
|
|
export default connectionSerializer;
|