chore: Move to prettier standard double quotes (#1309)
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
// @flow
|
||||
import { DataTypes, sequelize } from '../sequelize';
|
||||
import { DataTypes, sequelize } from "../sequelize";
|
||||
|
||||
const CollectionGroup = sequelize.define(
|
||||
'collection_group',
|
||||
"collection_group",
|
||||
{
|
||||
permission: {
|
||||
type: DataTypes.STRING,
|
||||
defaultValue: 'read_write',
|
||||
defaultValue: "read_write",
|
||||
validate: {
|
||||
isIn: [['read', 'read_write', 'maintainer']],
|
||||
isIn: [["read", "read_write", "maintainer"]],
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -20,18 +20,18 @@ const CollectionGroup = sequelize.define(
|
||||
|
||||
CollectionGroup.associate = models => {
|
||||
CollectionGroup.belongsTo(models.Collection, {
|
||||
as: 'collection',
|
||||
foreignKey: 'collectionId',
|
||||
as: "collection",
|
||||
foreignKey: "collectionId",
|
||||
primary: true,
|
||||
});
|
||||
CollectionGroup.belongsTo(models.Group, {
|
||||
as: 'group',
|
||||
foreignKey: 'groupId',
|
||||
as: "group",
|
||||
foreignKey: "groupId",
|
||||
primary: true,
|
||||
});
|
||||
CollectionGroup.belongsTo(models.User, {
|
||||
as: 'createdBy',
|
||||
foreignKey: 'createdById',
|
||||
as: "createdBy",
|
||||
foreignKey: "createdById",
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user