refactor(api): emit moderation events and apply account actions (#3031)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-29 12:24:15 +02:00
1 parent c488906131
commit 364084c819
385 files changed
+8994 -22221

No files matched your search

@@ -74,6 +74,8 @@ export interface IKVProvider {
rpush(key: string, ...values: Array<string>): Promise<number>;
lpop(key: string, count?: number): Promise<Array<string>>;
llen(key: string): Promise<number>;
lrange(key: string, start: number, stop: number): Promise<Array<string>>;
ltrim(key: string, start: number, stop: number): Promise<void>;
hset(key: string, field: string, value: string): Promise<number>;
hdel(key: string, ...fields: Array<string>): Promise<number>;
hget(key: string, field: string): Promise<string | null>;
@@ -555,6 +555,14 @@ export class KVClient implements IKVProvider {
return await this.execute('llen', async () => this.client.llen(key));
}
async lrange(key: string, start: number, stop: number): Promise<Array<string>> {
return await this.execute('lrange', async () => this.client.lrange(key, start, stop));
}
async ltrim(key: string, start: number, stop: number): Promise<void> {
await this.execute('ltrim', async () => this.client.ltrim(key, start, stop));
}
async hset(key: string, field: string, value: string): Promise<number> {
return await this.execute('hset', async () => this.client.hset(key, field, value));
}