Skip to content

Commit

Permalink
Add log_message_id to export
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshoXy committed Jun 3, 2024
1 parent 4fa77d5 commit 2f93276
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/api/guilds/importExport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const caseData = z.object({
is_hidden: z.boolean(),
pp_id: z.nullable(z.string()),
pp_name: z.nullable(z.string()),

log_message_id: z.string().optional(),
notes: z.array(caseNoteData),
});

Expand Down Expand Up @@ -168,7 +168,7 @@ export function initGuildsImportExportAPI(guildRouter: express.Router) {
is_hidden: theCase.is_hidden,
pp_id: theCase.pp_id,
pp_name: theCase.pp_name,

log_message_id: theCase.log_message_id ?? undefined,
notes: theCase.notes.map((note) => ({
mod_id: note.mod_id,
mod_name: note.mod_name,
Expand Down

0 comments on commit 2f93276

Please sign in to comment.