0
Fork 0
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:
Gao Sun 2023-09-23 22:51:01 +08:00
parent f34b2f4e21
commit 24f70ebb2c
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -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();
}