Handle includes in the front for the hisory

This commit is contained in:
2023-11-29 18:06:28 +01:00
parent 3f0c2472cb
commit 59a48ad060
5 changed files with 12 additions and 29 deletions
+2
View File
@@ -139,6 +139,8 @@ export default class API {
}
throw e;
});
if (!handler.transformer)
return handler.validator.cast(validated);
return handler.transformer(handler.validator.cast(validated));
} catch (e) {
if (e instanceof SyntaxError) throw new Error("Error while parsing Server's response");