SudoSOS Back-end API / internal/subscribers/transfer-subscriber / TransferSubscriber
Class: TransferSubscriber ​
Implements ​
EntitySubscriberInterface
Constructors ​
Constructor ​
ts
new TransferSubscriber(): TransferSubscriber;Returns ​
TransferSubscriber
Methods ​
afterInsert() ​
ts
afterInsert(event): Promise<void>;Called after entity is inserted to the database.
Parameters ​
| Parameter | Type |
|---|---|
event | InsertEvent<Transfer> |
Returns ​
Promise<void>
Implementation of ​
ts
EntitySubscriberInterface.afterInsertlistenTo() ​
ts
listenTo(): string | Function;Returns the class of the entity to which events will listen. If this method is omitted, then subscriber will listen to events of all entities.
Returns ​
string | Function
Implementation of ​
ts
EntitySubscriberInterface.listenTo