0a9588abb7
- Add pagination support to findAll (page, limit query params) - Add findByTemplateId method to service - Add GET /by-template/:templateId endpoint to controller - Service already includes CRUD for QuestionBank and QuestionBankItem
9 lines
192 B
TypeScript
9 lines
192 B
TypeScript
import { AsyncLocalStorage } from 'async_hooks';
|
|
|
|
export interface TenantContext {
|
|
tenantId: string;
|
|
userId?: string;
|
|
}
|
|
|
|
export const tenantStore = new AsyncLocalStorage<TenantContext>();
|