chore: Move to prettier standard double quotes (#1309)
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
// @flow
|
||||
import path from 'path';
|
||||
import { DataTypes, sequelize } from '../sequelize';
|
||||
import { deleteFromS3 } from '../utils/s3';
|
||||
import path from "path";
|
||||
import { DataTypes, sequelize } from "../sequelize";
|
||||
import { deleteFromS3 } from "../utils/s3";
|
||||
|
||||
const Attachment = sequelize.define(
|
||||
'attachment',
|
||||
"attachment",
|
||||
{
|
||||
id: {
|
||||
type: DataTypes.UUID,
|
||||
@ -30,9 +30,9 @@ const Attachment = sequelize.define(
|
||||
acl: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
defaultValue: 'public-read',
|
||||
defaultValue: "public-read",
|
||||
validate: {
|
||||
isIn: [['private', 'public-read']],
|
||||
isIn: [["private", "public-read"]],
|
||||
},
|
||||
},
|
||||
},
|
||||
@ -45,7 +45,7 @@ const Attachment = sequelize.define(
|
||||
return `/api/attachments.redirect?id=${this.id}`;
|
||||
},
|
||||
isPrivate: function() {
|
||||
return this.acl === 'private';
|
||||
return this.acl === "private";
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user