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,21 +1,21 @@
// @flow
import * as Sentry from '@sentry/node';
import { createQueue } from './utils/queue';
import services from './services';
import * as Sentry from "@sentry/node";
import { createQueue } from "./utils/queue";
import services from "./services";
export type UserEvent =
| {
name: | 'users.create' // eslint-disable-line
| 'users.update'
| 'users.suspend'
| 'users.activate'
| 'users.delete',
| "users.update"
| "users.suspend"
| "users.activate"
| "users.delete",
userId: string,
teamId: string,
actorId: string,
}
| {
name: 'users.invite',
name: "users.invite",
teamId: string,
actorId: string,
data: {
@@ -27,22 +27,22 @@ export type UserEvent =
export type DocumentEvent =
| {
name: | 'documents.create' // eslint-disable-line
| 'documents.publish'
| 'documents.delete'
| 'documents.pin'
| 'documents.unpin'
| 'documents.archive'
| 'documents.unarchive'
| 'documents.restore'
| 'documents.star'
| 'documents.unstar',
| "documents.publish"
| "documents.delete"
| "documents.pin"
| "documents.unpin"
| "documents.archive"
| "documents.unarchive"
| "documents.restore"
| "documents.star"
| "documents.unstar",
documentId: string,
collectionId: string,
teamId: string,
actorId: string,
}
| {
name: 'documents.move',
name: "documents.move",
documentId: string,
collectionId: string,
teamId: string,
@@ -53,7 +53,7 @@ export type DocumentEvent =
},
}
| {
name: 'documents.update',
name: "documents.update",
documentId: string,
collectionId: string,
teamId: string,
@@ -67,21 +67,21 @@ export type DocumentEvent =
export type CollectionEvent =
| {
name: | 'collections.create' // eslint-disable-line
| 'collections.update'
| 'collections.delete',
| "collections.update"
| "collections.delete",
collectionId: string,
teamId: string,
actorId: string,
}
| {
name: 'collections.add_user' | 'collections.remove_user',
name: "collections.add_user" | "collections.remove_user",
userId: string,
collectionId: string,
teamId: string,
actorId: string,
}
| {
name: 'collections.add_group' | 'collections.remove_group',
name: "collections.add_group" | "collections.remove_group",
collectionId: string,
teamId: string,
actorId: string,
@@ -91,7 +91,7 @@ export type CollectionEvent =
export type GroupEvent =
| {
name: 'groups.create' | 'groups.delete' | 'groups.update',
name: "groups.create" | "groups.delete" | "groups.update",
actorId: string,
modelId: string,
teamId: string,
@@ -99,7 +99,7 @@ export type GroupEvent =
ip: string,
}
| {
name: 'groups.add_user' | 'groups.remove_user',
name: "groups.add_user" | "groups.remove_user",
actorId: string,
userId: string,
modelId: string,
@@ -109,7 +109,7 @@ export type GroupEvent =
};
export type IntegrationEvent = {
name: 'integrations.create' | 'integrations.update',
name: "integrations.create" | "integrations.update",
modelId: string,
teamId: string,
actorId: string,
@@ -122,8 +122,8 @@ export type Event =
| IntegrationEvent
| GroupEvent;
const globalEventsQueue = createQueue('global events');
const serviceEventsQueue = createQueue('service events');
const globalEventsQueue = createQueue("global events");
const serviceEventsQueue = createQueue("service events");
// this queue processes global events and hands them off to service hooks
globalEventsQueue.process(async job => {
@@ -148,7 +148,7 @@ serviceEventsQueue.process(async job => {
service.on(event).catch(error => {
if (process.env.SENTRY_DSN) {
Sentry.withScope(function(scope) {
scope.setExtra('event', event);
scope.setExtra("event", event);
Sentry.captureException(error);
});
} else {