chore: Move to prettier standard double quotes (#1309)

This commit is contained in:
Tom Moor
2020-06-20 13:59:15 -07:00
committed by GitHub
parent 2a3b9e2104
commit f43deb7940
444 changed files with 5988 additions and 5977 deletions

View File

@ -1,9 +1,9 @@
// @flow
import { DataTypes, sequelize } from '../sequelize';
import randomstring from 'randomstring';
import { DataTypes, sequelize } from "../sequelize";
import randomstring from "randomstring";
const ApiKey = sequelize.define(
'apiKeys',
"apiKeys",
{
id: {
type: DataTypes.UUID,
@ -17,12 +17,12 @@ const ApiKey = sequelize.define(
type: DataTypes.UUID,
allowNull: false,
references: {
model: 'users',
model: "users",
},
},
},
{
tableName: 'apiKeys',
tableName: "apiKeys",
paranoid: true,
hooks: {
beforeValidate: key => {
@ -34,8 +34,8 @@ const ApiKey = sequelize.define(
ApiKey.associate = models => {
ApiKey.belongsTo(models.User, {
as: 'user',
foreignKey: 'userId',
as: "user",
foreignKey: "userId",
});
};