Fix validation errors not being flashed correctly

This commit is contained in:
Alice Gaudon 2020-11-03 11:12:49 +01:00
parent 6fa2683318
commit 7c2572cddc
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ export default abstract class Application implements Extendable<ApplicationCompo
res.send('Error: ' + err.getMessages());
},
html: () => {
req.flash('validation', err.getMessages().toString());
req.flash('validation', err.getMessages());
res.redirectBack();
},
});

View File

@ -24,7 +24,7 @@ declare global {
flash(message: string): unknown[];
flash(event: string, message: string): void;
flash(event: string, message: unknown): void;
}
export interface Response {