Skip to content

Commit 99aa1f8

Browse files
committed
fix
1 parent dc5bf00 commit 99aa1f8

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

src/defaults.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ export const DefaultMongoURI = DefinitionDefaults.databaseURI;
3838
// before passing to MongoDB client
3939
export const ParseServerDatabaseOptions = [
4040
'allowPublicExplain',
41-
'enableSchemaHooks',
42-
'schemaCacheTtl',
43-
'maxTimeMS',
44-
'disableIndexFieldValidation',
45-
'logClientEvents',
46-
'createIndexUserUsername',
47-
'createIndexUserUsernameCaseInsensitive',
41+
'createIndexRoleName',
4842
'createIndexUserEmail',
4943
'createIndexUserEmailCaseInsensitive',
5044
'createIndexUserEmailVerifyToken',
5145
'createIndexUserPasswordResetToken',
52-
'createIndexRoleName',
46+
'createIndexUserUsername',
47+
'createIndexUserUsernameCaseInsensitive',
48+
'disableIndexFieldValidation',
49+
'enableSchemaHooks',
50+
'logClientEvents',
51+
'maxTimeMS',
52+
'schemaCacheTtl',
5353
];

types/Options/index.d.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,20 @@ export interface FileUploadOptions {
228228
}
229229
export interface DatabaseOptions {
230230
// Parse Server custom options
231+
allowPublicExplain?: boolean;
232+
createIndexRoleName?: boolean;
233+
createIndexUserEmail?: boolean;
234+
createIndexUserEmailCaseInsensitive?: boolean;
235+
createIndexUserEmailVerifyToken?: boolean;
236+
createIndexUserPasswordResetToken?: boolean;
237+
createIndexUserUsername?: boolean;
238+
createIndexUserUsernameCaseInsensitive?: boolean;
239+
disableIndexFieldValidation?: boolean;
231240
enableSchemaHooks?: boolean;
241+
logClientEvents?: any[];
242+
// maxTimeMS is a MongoDB option but Parse Server applies it per-operation, not as a global client option
243+
maxTimeMS?: number;
232244
schemaCacheTtl?: number;
233-
allowPublicExplain?: boolean;
234245

235246
// MongoDB driver options
236247
appName?: string;
@@ -250,7 +261,6 @@ export interface DatabaseOptions {
250261
maxIdleTimeMS?: number;
251262
maxPoolSize?: number;
252263
maxStalenessSeconds?: number;
253-
maxTimeMS?: number;
254264
minPoolSize?: number;
255265
proxyHost?: string;
256266
proxyPassword?: string;

0 commit comments

Comments
 (0)