Skip to content

Commit

Permalink
Optimize JSONB key names
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingzhen committed Oct 30, 2024
1 parent 8d9d682 commit a8120f8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,13 @@ class Postgres {
res.w = s.wear;
}
if (s.scale) {
res.scale = s.scale;
res.sc = s.scale;
}
if (s.rotation) {
res.r = s.rotation;
}
if (s.tint_id) {
res.tint_id = s.tint_id;
res.t = s.tint_id;
}
if (s.offset_x) {
res.x = s.offset_x;
Expand All @@ -274,7 +274,7 @@ class Postgres {
res.z = s.offset_z;
}
if (s.pattern) {
res.pattern = s.pattern;
res.p = s.pattern;
}
return res;
}) : null;
Expand Down Expand Up @@ -394,13 +394,13 @@ class Postgres {
sticker_id: s.i,
slot: s.s,
wear: s.w,
scale: s.scale,
scale: s.sc,
rotation: s.r,
tint_id: s.tint_id,
tint_id: s.t,
offset_x: s.x,
offset_y: s.y,
offset_z: s.z,
pattern: s.pattern,
pattern: s.p,
}
});

Expand Down

0 comments on commit a8120f8

Please sign in to comment.