mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Don't send unused fields with time unit table request
This commit is contained in:
@@ -25,7 +25,9 @@ export const getAllTimeUnits = async () => {
|
||||
})
|
||||
|
||||
return result.map(item => ({
|
||||
...item,
|
||||
tu_name: item.tu_name,
|
||||
tu_display_name: item.tu_display_name,
|
||||
rank: item.rank,
|
||||
low_bound: item.now_tu_bound_now_time_unit_low_bndTonow_tu_bound.age,
|
||||
up_bound: item.now_tu_bound_now_time_unit_up_bndTonow_tu_bound.age,
|
||||
seq_name: item.now_tu_sequence.seq_name,
|
||||
|
||||
Vendored
-9
@@ -143,16 +143,7 @@ export type TimeUnit = {
|
||||
low_bound: number
|
||||
up_bound: number
|
||||
seq_name: string
|
||||
now_tu_sequence: {
|
||||
seq_name: string
|
||||
}
|
||||
tu_name: string
|
||||
now_tu_bound_now_time_unit_low_bndTonow_tu_bound: {
|
||||
age: number
|
||||
}
|
||||
now_tu_bound_now_time_unit_up_bndTonow_tu_bound: {
|
||||
age: number
|
||||
}
|
||||
tu_display_name: string
|
||||
rank: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user