mirror of
https://github.com/djhackersdev/minime.git
synced 2026-08-20 01:14:08 -05:00
idz: Fix SqlProfileRepository
This commit is contained in:
committed by
da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent
1f544ddb7e
commit
dbffb15779
@@ -42,7 +42,7 @@ export class SqlProfileRepository implements ProfileRepository {
|
||||
.from("idz_profile p")
|
||||
.join("aime_player r", { "p.player_id": "r.id" })
|
||||
.where("r.ext_id", aimeId)
|
||||
.and("r.version", version);
|
||||
.and("p.version", version);
|
||||
|
||||
const row = await this._txn.fetchRow(lookupSql);
|
||||
|
||||
@@ -102,6 +102,7 @@ export class SqlProfileRepository implements ProfileRepository {
|
||||
const createSql = sql.insert("idz_profile", {
|
||||
id: id,
|
||||
player_id: playerId,
|
||||
version: profile.version,
|
||||
name: profile.name,
|
||||
lv: profile.lv,
|
||||
exp: profile.exp,
|
||||
|
||||
Reference in New Issue
Block a user