mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
* feat: initial support for synced tenants * fix: cleanup * fix: logger now respects logging level * fix: cache now ignores updates issued from itself * feat: print subscriber count * fix: support tenant cache for oidc strategy * fix: replace some constructor initializers with property initializers * fix: audit * [next] Comments and Moderation (#1759) * feat: initial moderation + validation for new comments * fix: added Promiseable type * feat: initial actions impl * feat: more moderation phases * fix: handle settings inheritence * fix: moved settings into new file * fix: defaults and documentation * fix: replace merge with object spread * feat: added integration with akismet * fix: fixed compile * fix: import ordering * fix: merge issue causing build to fail
20 lines
417 B
TypeScript
20 lines
417 B
TypeScript
import { Db } from "mongodb";
|
|
|
|
import CommonContext from "talk-server/graph/common/context";
|
|
import { Request } from "talk-server/types/express";
|
|
|
|
export interface ManagementContextOptions {
|
|
mongo: Db;
|
|
req?: Request;
|
|
}
|
|
|
|
export default class ManagementContext extends CommonContext {
|
|
public mongo: Db;
|
|
|
|
constructor({ req, mongo }: ManagementContextOptions) {
|
|
super({ req });
|
|
|
|
this.mongo = mongo;
|
|
}
|
|
}
|