enhance: improve moderation log

This commit is contained in:
syuilo
2023-09-25 10:29:12 +09:00
parent 646a8d1a54
commit 5318532a8d
19 changed files with 209 additions and 60 deletions

View File

@@ -79,9 +79,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
throw new ApiError(meta.errors.noSuchRole);
}
const date = new Date();
await this.roleService.update(role, {
updatedAt: date,
name: ps.name,
description: ps.description,
color: ps.color,