mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore(core): add comments to basic sentinel init
This commit is contained in:
parent
f34b2f4e21
commit
24f70ebb2c
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,13 @@ export default class BasicSentinel extends Sentinel {
|
|||
|
||||
protected insertActivity = buildInsertIntoWithPool(this.pool)(SentinelActivities);
|
||||
|
||||
/**
|
||||
* Init a basic sentinel with the given pool that has at least the access to the tenant-level
|
||||
* data. We don't directly put the queries in the `TenantContext` because the sentinel was
|
||||
* designed to be used as an isolated module that can be separated from the core business logic.
|
||||
*
|
||||
* @param pool A database pool with methods {@link CommonQueryMethods}.
|
||||
*/
|
||||
constructor(protected readonly pool: CommonQueryMethods) {
|
||||
super();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue