chore: Fixes issue related to flow types (#4724)

* Fixes issue related to flow types

* Improves type inference on where clause, index

* run parse-server start on liveQueryServer only on mongo, state leaks on postgres
This commit is contained in:
Florent Vilmart
2018-05-01 07:37:38 -04:00
committed by GitHub
parent 04588bccb9
commit fad7b46c65
4 changed files with 56 additions and 43 deletions

View File

@@ -161,7 +161,7 @@ export class MongoStorageAdapter implements StorageAdapter {
return this.connectionPromise;
}
handleError<T>(error: ?Error): Promise<T> {
handleError<T>(error: ?(Error | Parse.Error)): Promise<T> {
if (error && error.code === 13) { // Unauthorized error
delete this.client;
delete this.database;