Skip to content
Snippets Groups Projects
Commit 521e4c78 authored by L4168's avatar L4168
Browse files

created gameperson decorator

parent 21f1604e
No related branches found
No related tags found
3 merge requests!59Development to master,!44Development to testing,!40Gameperson decorator
import { createParamDecorator } from '@nestjs/common';
/*
gives service access to the gameperson object
Game_PersonEntity {
gamepersonId
role
faction
}
*/
export const GamePerson = createParamDecorator((data, req) => {
return data ? req.gameperson[data] : req.gameperson;
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment