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;
+1
View File
@@ -41,6 +41,7 @@ export { Handler, ConnectionHandler, requireSudo } from './service/server';
export { Service, Context } from './context';
export { buildContent } from './lib/content';
export { default as mime } from './lib/mime';
export { default as difficultyAlgorithm } from './lib/difficulty';
export { default as rating } from './lib/rating';
export { default as avatar } from './lib/avatar';
/** @deprecated use Handler.paginate instead */