core: add exports

This commit is contained in:
undefined committed 2025-03-07 12:37:32 +08:00
1 parent bb4c1ac74f
commit 37f5b98db2
2 files changed
+4

No files matched your search

+3
View File
@@ -209,6 +209,9 @@ class UserModel {
loginip: '127.0.0.1',
};
static _handleMailLower = handleMailLower;
static _deleteUserCache = deleteUserCache;
@ArgMethod
static async getById(domainId: string, _id: number, scope: bigint | string = PERM.PERM_ALL): Promise<User> {
if (cache.has(`id/${_id}/${domainId}`)) return cache.get(`id/${_id}/${domainId}`) || null;