Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch committed Dec 9, 2024
1 parent 612ef26 commit 8af6f31
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/chronos/chronos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

import {CronJob} from 'cron'
import getGraphQLExecutor from 'parabol-server/utils/getGraphQLExecutor'
import publishWebhookGQL from 'parabol-server/utils/publishWebhookGQL'
import {Logger} from 'parabol-server/utils/Logger'
import publishWebhookGQL from 'parabol-server/utils/publishWebhookGQL'

interface PossibleJob {
onTick(): void
Expand Down
2 changes: 1 addition & 1 deletion packages/embedder/ai_models/OpenAIGeneration.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import OpenAI from 'openai'
import {Logger} from '../../server/utils/Logger'
import {
AbstractGenerationModel,
GenerationModelParams,
GenerationOptions
} from './AbstractGenerationModel'
import {Logger} from '../../server/utils/Logger'

export type ModelId = 'gpt-3.5-turbo-0125' | 'gpt-4-turbo-preview'

Expand Down
2 changes: 1 addition & 1 deletion packages/embedder/ai_models/TextGenerationInference.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {Logger} from '../../server/utils/Logger'
import {
AbstractGenerationModel,
GenerationModelParams,
GenerationOptions
} from './AbstractGenerationModel'
import fetchWithRetry from './helpers/fetchWithRetry'
import {Logger} from '../../server/utils/Logger'

const MAX_REQUEST_TIME_S = 3 * 60

Expand Down
2 changes: 1 addition & 1 deletion packages/embedder/debug.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// call with yarn sucrase-node billing/debug.ts
import '../../scripts/webpack/utils/dotenv'
import getKysely from '../server/postgres/getKysely'
import {WorkflowOrchestrator} from './WorkflowOrchestrator'
import {Logger} from '../server/utils/Logger'
import {WorkflowOrchestrator} from './WorkflowOrchestrator'

const debugFailedJob = async () => {
const pg = getKysely()
Expand Down
2 changes: 1 addition & 1 deletion packages/server/email/MailManagerDebug.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs'
import MailManager, {MailManagerOptions} from './MailManager'
import {Logger} from '../utils/Logger'
import MailManager, {MailManagerOptions} from './MailManager'

export default class MailManagerDebug extends MailManager {
async sendEmail(options: MailManagerOptions) {
Expand Down
2 changes: 1 addition & 1 deletion packages/server/fileStorage/LocalFileStoreManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import fs from 'fs'
import makeAppURL from 'parabol-client/utils/makeAppURL'
import path from 'path'
import appOrigin from '../appOrigin'
import FileStoreManager from './FileStoreManager'
import {Logger} from '../utils/Logger'
import FileStoreManager from './FileStoreManager'

export default class LocalFileStoreManager extends FileStoreManager {
baseUrl = makeAppURL(appOrigin, 'self-hosted')
Expand Down
2 changes: 1 addition & 1 deletion packages/server/fileStorage/S3FileStoreManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import type {RetryErrorInfo, StandardRetryToken} from '@smithy/types'
import {StandardRetryStrategy} from '@smithy/util-retry'
import mime from 'mime-types'
import path from 'path'
import FileStoreManager, {FileAssetDir} from './FileStoreManager'
import {Logger} from '../utils/Logger'
import FileStoreManager, {FileAssetDir} from './FileStoreManager'

class CloudflareRetry extends StandardRetryStrategy {
public async refreshRetryTokenForRetry(
Expand Down
2 changes: 1 addition & 1 deletion packages/server/graphql/composeResolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {defaultFieldResolver} from 'graphql'
import {allow} from 'graphql-shield'
import type {ShieldRule} from 'graphql-shield/dist/types'
import hash from 'object-hash'
import {ResolverFn} from './private/resolverTypes'
import {Logger} from '../utils/Logger'
import {ResolverFn} from './private/resolverTypes'

type Resolver = ResolverFn<any, any, any, any>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import getProjectRoot from '../../../../../scripts/webpack/utils/getProjectRoot'
import getKysely from '../../../postgres/getKysely'
import getPg from '../../../postgres/getPg'
import getPgConfig from '../../../postgres/getPgConfig'
import {MutationResolvers} from '../resolverTypes'
import {Logger} from '../../../utils/Logger'
import {MutationResolvers} from '../resolverTypes'

const exec = util.promisify(childProcess.exec)

Expand Down
2 changes: 1 addition & 1 deletion packages/server/graphql/private/queries/orgActivities.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {sql} from 'kysely'
import getKysely from '../../../postgres/getKysely'
import {OrgActivityRow, QueryResolvers} from '../resolverTypes'
import {Logger} from '../../../utils/Logger'
import {OrgActivityRow, QueryResolvers} from '../resolverTypes'

const orgActivities: QueryResolvers['orgActivities'] = async (_source, {startDate, endDate}) => {
const pg = getKysely()
Expand Down
2 changes: 1 addition & 1 deletion packages/server/listenHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {us_listen_socket} from 'uWebSockets.js'
import getGraphQLExecutor from './utils/getGraphQLExecutor'
import serverHealthChecker from './utils/serverHealthChecker'
import {Logger} from './utils/Logger'
import serverHealthChecker from './utils/serverHealthChecker'

const listenHandler = (listenSocket: us_listen_socket) => {
const PORT = Number(__PRODUCTION__ ? process.env.PORT : process.env.SOCKET_PORT)
Expand Down
2 changes: 1 addition & 1 deletion packages/server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import handleUpgrade from './socketHandlers/handleUpgrade'
import SSEConnectionHandler from './sse/SSEConnectionHandler'
import SSEPingHandler from './sse/SSEPingHandler'
import staticFileHandler from './staticFileHandler'
import SAMLHandler from './utils/SAMLHandler'
import {Logger} from './utils/Logger'
import SAMLHandler from './utils/SAMLHandler'

tracer.init({
service: `web`,
Expand Down
2 changes: 1 addition & 1 deletion packages/server/staticFileHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {HttpRequest, HttpResponse} from 'uWebSockets.js'
import acceptsBrotli from './acceptsBrotli'
import serveStatic from './utils/serveStatic'
import {Logger} from './utils/Logger'
import serveStatic from './utils/serveStatic'

const ROUTE = '/static/'
let hasWarned = false
Expand Down
2 changes: 1 addition & 1 deletion packages/server/utils/serverHealthChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import sleep from '../../client/utils/sleep'
import ServerAuthToken from '../database/types/ServerAuthToken'
import {UserPresence} from '../graphql/private/mutations/connectSocket'
import {disconnectQuery} from '../socketHandlers/handleDisconnect'
import {Logger} from './Logger'
import RedisInstance from './RedisInstance'
import publishInternalGQL from './publishInternalGQL'
import sendToSentry from './sendToSentry'
import {Logger} from './Logger'

const SERVER_ID = process.env.SERVER_ID!
const INSTANCE_ID = `${SERVER_ID}:${process.pid}`
Expand Down
2 changes: 1 addition & 1 deletion packages/server/utils/stripe/StubStripeManager.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Stripe from 'stripe'
import {toEpochSeconds} from '../epochTime'
import StripeManager from './StripeManager'
import {Logger} from '../Logger'
import StripeManager from './StripeManager'

// using proxy to start gradual coverage of StripeManager
export default function StubStripeManager() {
Expand Down

0 comments on commit 8af6f31

Please sign in to comment.