Skip to content

Commit 289c37e

Browse files
committed
Fixes for flow types
1 parent 9b623a7 commit 289c37e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

spec/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const reconfigureServer = changedConfiguration => {
128128
});
129129
}
130130
try {
131-
var parseServer;
131+
let parseServer = undefined;
132132
const newConfiguration = Object.assign({}, defaultConfiguration, changedConfiguration, {
133133
__indexBuildCompletionCallbackForTests: indexBuildPromise => indexBuildPromise.then(() => {
134134
resolve(parseServer);

src/Controllers/DatabaseController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ class DatabaseController {
658658

659659
// Returns a promise for a list of owning ids given some related ids.
660660
// className here is the owning className.
661-
owningIds(className: string, key: string, relatedIds: string): Promise<string[]> {
661+
owningIds(className: string, key: string, relatedIds: string[]): Promise<string[]> {
662662
return this.adapter.find(joinTableName(className, key), relationSchema, { relatedId: { '$in': relatedIds } }, {})
663663
.then(results => results.map(result => result.owningId));
664664
}

src/Controllers/SchemaController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ export default class SchemaController {
862862
return SchemaController.testBaseCLP(this.perms[className], aclGroup, operation);
863863
}
864864

865-
static testBaseCLP(classPermissions: ?any, className: string, aclGroup: string[], operation: string) {
865+
static testBaseCLP(classPermissions: ?any, aclGroup: string[], operation: string) {
866866
if (!classPermissions || !classPermissions[operation]) {
867867
return true;
868868
}
@@ -922,7 +922,7 @@ export default class SchemaController {
922922
}
923923

924924
// Validates an operation passes class-level-permissions set in the schema
925-
validatePermission(className, aclGroup, operation) {
925+
validatePermission(className: string, aclGroup: string[], operation: string) {
926926
return SchemaController.validatePermission(this.perms[className], className, aclGroup, operation);
927927
}
928928

0 commit comments

Comments
 (0)