fix crown ghost saving bug
This commit is contained in:
parent
6e3bddd018
commit
d3abffa233
@ -758,18 +758,16 @@ export default class GameModule extends Module {
|
|||||||
|
|
||||||
if(gCount){
|
if(gCount){
|
||||||
let gdbId = gCount.dbId;
|
let gdbId = gCount.dbId;
|
||||||
await prisma.ghostTrail.update({
|
await prisma.ghostTrail.delete({
|
||||||
where: {
|
where: {
|
||||||
dbId: gdbId
|
dbId: gdbId
|
||||||
},
|
}
|
||||||
data: saveEx
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else{
|
|
||||||
await prisma.ghostTrail.create({
|
await prisma.ghostTrail.create({
|
||||||
data: saveEx
|
data: saveEx
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
await prisma.carCrown.update({
|
await prisma.carCrown.update({
|
||||||
where: {
|
where: {
|
||||||
|
Loading…
Reference in New Issue
Block a user