chore: Upgrade pg and sequelize to support node 14+ (#1462)
* Upgrade pg and sequelize to support node 14+ When Node 14 came out the app was incompatible, we should always have a maximum version defined here until the server code has been tested to prove compatibility Co-authored-by: Lance Whatley <whatl3y@gmail.com>
This commit is contained in:
@ -72,11 +72,13 @@ export default async function present(document: Document, options: ?Options) {
|
||||
data.updatedBy = presentUser(document.updatedBy);
|
||||
|
||||
// TODO: This could be further optimized
|
||||
data.collaborators = await User.findAll({
|
||||
where: {
|
||||
id: takeRight(document.collaboratorIds, 10) || [],
|
||||
},
|
||||
}).map(presentUser);
|
||||
data.collaborators = (
|
||||
await User.findAll({
|
||||
where: {
|
||||
id: takeRight(document.collaboratorIds, 10) || [],
|
||||
},
|
||||
})
|
||||
).map(presentUser);
|
||||
}
|
||||
|
||||
return data;
|
||||
|
Reference in New Issue
Block a user