Skip to content

Commit

Permalink
Remove unecessary props from etherpad client config
Browse files Browse the repository at this point in the history
  • Loading branch information
bischofmax committed Apr 19, 2024
1 parent 33eea89 commit 30cfef1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ import { EtherpadClientAdapter } from './etherpad-client.adapter';
export interface EtherpadClientConfig extends ConfigurationParameters {
apiKey?: string;
basePath?: string;
cookieExpiresSeconds: number;
cookieReleaseThreshold: number;
padURI: string;
}

@Module({})
Expand Down
7 changes: 0 additions & 7 deletions apps/server/src/modules/collaborative-text-editor/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,4 @@ import { EtherpadClientConfig } from '@src/infra/etherpad-client';
export const etherpadClientConfig: EtherpadClientConfig = {
apiKey: Configuration.has('ETHERPAD_API_KEY') ? (Configuration.get('ETHERPAD_API_KEY') as string) : undefined,
basePath: Configuration.has('ETHERPAD_URI') ? (Configuration.get('ETHERPAD_URI') as string) : undefined,
cookieExpiresSeconds: Configuration.has('ETHERPAD_COOKIE__EXPIRES_SECONDS')
? (Configuration.get('ETHERPAD_COOKIE__EXPIRES_SECONDS') as number)
: 1000,
cookieReleaseThreshold: Configuration.has('ETHERPAD_COOKIE_RELEASE_THRESHOLD')
? (Configuration.get('ETHERPAD_COOKIE_RELEASE_THRESHOLD') as number)
: 1000,
padURI: Configuration.has('ETHERPAD__PAD_URI') ? (Configuration.get('ETHERPAD__PAD_URI') as string) : '',
};

0 comments on commit 30cfef1

Please sign in to comment.