mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -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);
|
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) {
|
constructor(protected readonly pool: CommonQueryMethods) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue