Home
/
risinglegends.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a33bed
)
remove unnecessary logs/vars
author
xangelo
<git@xangelo.ca>
Fri, 9 Jun 2023 15:26:34 +0000
(11:26 -0400)
committer
xangelo
<git@xangelo.ca>
Fri, 9 Jun 2023 15:26:34 +0000
(11:26 -0400)
src/server/skills.ts
patch
|
blob
|
history
diff --git
a/src/server/skills.ts
b/src/server/skills.ts
index dc134264227be9f5a7a8daf7aa498963d4dcddbc..59d507508cdcab4c4990f15a3eff74883af52a7f 100644
(file)
--- a/
src/server/skills.ts
+++ b/
src/server/skills.ts
@@
-23,11
+23,9
@@
export async function getPlayerSkillsAsObject(playerId: string): Promise<Map<Ski
export async function updatePlayerSkills(playerId: string, skills: Record<SkillID, number>) {
const sql = [];
- const params = [];
each(skills, (val, skillId) => {
sql.push(`update player_skills set exp = exp + ${val} where id = '${skillId}' and player_id = '${playerId}'`);
});
- console.log(sql);
await db.raw(sql.join(';'));
}