feat(guild-messaging): add idempotency-key support for write endpoints

This commit is contained in:
nav
2026-05-12 10:40:00 +00:00
parent 2ec50f3234
commit 670762aa7a
5 changed files with 94 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ import { DmParticipant } from './entities/dm-participant.entity';
import { GuildRole } from './entities/guild-role.entity';
import { GuildMember } from './entities/guild-member.entity';
import { GuildMemberRole } from './entities/guild-member-role.entity';
import { IdempotencyRecord } from './entities/idempotency-record.entity';
export const buildTypeOrmConfig = (): TypeOrmModuleOptions => ({
type: 'mysql',
@@ -24,6 +25,7 @@ export const buildTypeOrmConfig = (): TypeOrmModuleOptions => ({
GuildRole,
GuildMember,
GuildMemberRole,
IdempotencyRecord,
],
synchronize: (process.env.DB_SYNC ?? 'true') === 'true',
logging: (process.env.DB_LOGGING ?? 'false') === 'true',