Debugging
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 49s
All checks were successful
Publish to Private NPM Registry / publish (push) Successful in 49s
This commit is contained in:
parent
744bcb82e3
commit
d8e8c3bbcd
1 changed files with 2 additions and 0 deletions
|
|
@ -63,6 +63,8 @@ export function Page(title: string, page: string, extraScripts: (string | { scri
|
||||||
return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
|
return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
|
||||||
const original = descriptor.value;
|
const original = descriptor.value;
|
||||||
|
|
||||||
|
console.log('[Page Decorator] Original:', original);
|
||||||
|
|
||||||
// If the original function has more than 3 parameters, we can assume it is an error handler
|
// If the original function has more than 3 parameters, we can assume it is an error handler
|
||||||
// An error handler starts with the error object, then the request, response and next functions.
|
// An error handler starts with the error object, then the request, response and next functions.
|
||||||
if(original.length > 3) {
|
if(original.length > 3) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue