fix(housekeeping): complete system audit outcomes
This commit is contained in:
1 parent
1360b0ed59
commit
3c23c6e61d
6 files changed
+506
-53
No files matched your search
@@ -33,6 +33,9 @@ export interface EmulatorRankSummary {
|
||||
}
|
||||
|
||||
export interface EmulatorRankForEdit extends EmulatorRankSummary {
|
||||
job_description: string;
|
||||
staff_color: string;
|
||||
staff_background: string;
|
||||
log_commands: string;
|
||||
room_effect: number;
|
||||
auto_credits_amount: number;
|
||||
@@ -117,7 +120,8 @@ export async function fetchEmulatorRankForEdit(
|
||||
db,
|
||||
sql`
|
||||
SELECT id, rank_name, badge, level, prefix, prefix_color, hidden_rank,
|
||||
log_commands, room_effect, auto_credits_amount, auto_pixels_amount,
|
||||
job_description, staff_color, staff_background, log_commands,
|
||||
room_effect, auto_credits_amount, auto_pixels_amount,
|
||||
auto_gotw_amount, auto_points_amount
|
||||
FROM permission_ranks
|
||||
WHERE id = ${rankId}
|
||||
@@ -182,6 +186,9 @@ export async function fetchEmulatorRankForEdit(
|
||||
prefix: String(row.prefix ?? ""),
|
||||
prefix_color: String(row.prefix_color ?? ""),
|
||||
hidden_rank: String(row.hidden_rank ?? "0"),
|
||||
job_description: String(row.job_description ?? ""),
|
||||
staff_color: String(row.staff_color ?? ""),
|
||||
staff_background: String(row.staff_background ?? ""),
|
||||
log_commands: String(row.log_commands ?? "0"),
|
||||
room_effect: Number(row.room_effect ?? 0),
|
||||
auto_credits_amount: Number(row.auto_credits_amount ?? 0),
|
||||
|
||||
Reference in new issue
Block a user