fix equipment table saving to use less space
This commit is contained in:
parent
a5f6a33b9b
commit
732f3849e8
2 changed files with 13 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ module.exports = {
|
|||
create: async (data) => {
|
||||
const result = await SplatfestResult.create(data);
|
||||
|
||||
await Equipment.create({
|
||||
await Equipment.upsert({
|
||||
PId: data.PId,
|
||||
weapon: data.Weapon,
|
||||
sumpaint: data.SumPaint
|
||||
|
|
|
|||
Loading…
Reference in a new issue