Migrate atlasId -> collectionId
This commit is contained in:
@ -20,6 +20,10 @@ Event.associate = models => {
|
||||
as: 'collection',
|
||||
foreignKey: 'collectionId',
|
||||
});
|
||||
Event.belongsTo(models.Collection, {
|
||||
as: 'document',
|
||||
foreignKey: 'documentId',
|
||||
});
|
||||
Event.belongsTo(models.Team, {
|
||||
as: 'team',
|
||||
foreignKey: 'teamId',
|
||||
|
Reference in New Issue
Block a user