Skip to content

Commit a8120f8

Browse files
committed
Optimize JSONB key names
1 parent 8d9d682 commit a8120f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/postgres.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ class Postgres {
256256
res.w = s.wear;
257257
}
258258
if (s.scale) {
259-
res.scale = s.scale;
259+
res.sc = s.scale;
260260
}
261261
if (s.rotation) {
262262
res.r = s.rotation;
263263
}
264264
if (s.tint_id) {
265-
res.tint_id = s.tint_id;
265+
res.t = s.tint_id;
266266
}
267267
if (s.offset_x) {
268268
res.x = s.offset_x;
@@ -274,7 +274,7 @@ class Postgres {
274274
res.z = s.offset_z;
275275
}
276276
if (s.pattern) {
277-
res.pattern = s.pattern;
277+
res.p = s.pattern;
278278
}
279279
return res;
280280
}) : null;
@@ -394,13 +394,13 @@ class Postgres {
394394
sticker_id: s.i,
395395
slot: s.s,
396396
wear: s.w,
397-
scale: s.scale,
397+
scale: s.sc,
398398
rotation: s.r,
399-
tint_id: s.tint_id,
399+
tint_id: s.t,
400400
offset_x: s.x,
401401
offset_y: s.y,
402402
offset_z: s.z,
403-
pattern: s.pattern,
403+
pattern: s.p,
404404
}
405405
});
406406

0 commit comments

Comments
 (0)