Fix purging empty class (#4676)

* Fix purging empty class

* remove fit
This commit is contained in:
Diamond Lewis
2018-03-25 08:41:25 -05:00
committed by GitHub
parent 710848938f
commit 0fd8493929
2 changed files with 10 additions and 0 deletions

View File

@@ -17,6 +17,11 @@ export class PurgeRouter extends PromiseRouter {
cacheAdapter.role.clear();
}
return {response: {}};
}).catch((error) => {
if (!error || (error && error.code === Parse.Error.OBJECT_NOT_FOUND)) {
return {response: {}};
}
throw error;
});
}