Skip to content

Commit

Permalink
Fixes for flow types
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Feb 19, 2018
1 parent 9b623a7 commit 289c37e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/helper.js
Expand Up @@ -128,7 +128,7 @@ const reconfigureServer = changedConfiguration => {
});
}
try {
var parseServer;
let parseServer = undefined;
const newConfiguration = Object.assign({}, defaultConfiguration, changedConfiguration, {
__indexBuildCompletionCallbackForTests: indexBuildPromise => indexBuildPromise.then(() => {
resolve(parseServer);
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/DatabaseController.js
Expand Up @@ -658,7 +658,7 @@ class DatabaseController {

// Returns a promise for a list of owning ids given some related ids.
// className here is the owning className.
owningIds(className: string, key: string, relatedIds: string): Promise<string[]> {
owningIds(className: string, key: string, relatedIds: string[]): Promise<string[]> {
return this.adapter.find(joinTableName(className, key), relationSchema, { relatedId: { '$in': relatedIds } }, {})
.then(results => results.map(result => result.owningId));
}
Expand Down
4 changes: 2 additions & 2 deletions src/Controllers/SchemaController.js
Expand Up @@ -862,7 +862,7 @@ export default class SchemaController {
return SchemaController.testBaseCLP(this.perms[className], aclGroup, operation);
}

static testBaseCLP(classPermissions: ?any, className: string, aclGroup: string[], operation: string) {
static testBaseCLP(classPermissions: ?any, aclGroup: string[], operation: string) {
if (!classPermissions || !classPermissions[operation]) {
return true;
}
Expand Down Expand Up @@ -922,7 +922,7 @@ export default class SchemaController {
}

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

Expand Down

0 comments on commit 289c37e

Please sign in to comment.