Skip to content

Commit

Permalink
fix case note on timeout expiration for manual timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored Jan 23, 2024
1 parent cfadfe2 commit be87fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/plugins/ModActions/events/AuditLogEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const AuditLogEvents = modActionsEvt({
caseId: existingCaseId,
modId: auditLogEntry.executor?.id || "0",
body: auditLogEntry.reason || "",
noteDetails: [`Timeout set to expire on <t:${moment.utc(muteChange.new as string).valueOf()}>`],
noteDetails: [`Timeout set to expire on <t:${Math.ceil(moment.utc(muteChange.new as string).valueOf() / 1_000)}>`],
});
} else {
await casesPlugin.createCase({
Expand Down

0 comments on commit be87fe6

Please sign in to comment.