idz: Fix SqlProfileRepository
This commit is contained in:
@@ -42,7 +42,7 @@ export class SqlProfileRepository implements ProfileRepository {
|
|||||||
.from("idz_profile p")
|
.from("idz_profile p")
|
||||||
.join("aime_player r", { "p.player_id": "r.id" })
|
.join("aime_player r", { "p.player_id": "r.id" })
|
||||||
.where("r.ext_id", aimeId)
|
.where("r.ext_id", aimeId)
|
||||||
.and("r.version", version);
|
.and("p.version", version);
|
||||||
|
|
||||||
const row = await this._txn.fetchRow(lookupSql);
|
const row = await this._txn.fetchRow(lookupSql);
|
||||||
|
|
||||||
@@ -102,6 +102,7 @@ export class SqlProfileRepository implements ProfileRepository {
|
|||||||
const createSql = sql.insert("idz_profile", {
|
const createSql = sql.insert("idz_profile", {
|
||||||
id: id,
|
id: id,
|
||||||
player_id: playerId,
|
player_id: playerId,
|
||||||
|
version: profile.version,
|
||||||
name: profile.name,
|
name: profile.name,
|
||||||
lv: profile.lv,
|
lv: profile.lv,
|
||||||
exp: profile.exp,
|
exp: profile.exp,
|
||||||
|
|||||||
Reference in New Issue
Block a user