summaryrefslogtreecommitdiff
path: root/src/routers/vault/middlewares/legacy/account.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/routers/vault/middlewares/legacy/account.js')
-rw-r--r--src/routers/vault/middlewares/legacy/account.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routers/vault/middlewares/legacy/account.js b/src/routers/vault/middlewares/legacy/account.js
index 93fd831..b78317f 100644
--- a/src/routers/vault/middlewares/legacy/account.js
+++ b/src/routers/vault/middlewares/legacy/account.js
@@ -350,7 +350,7 @@ const migrate = async (req, res, next) => {
accountId: evol_acc.accountId,
hairColor: Math.floor(Math.random() * 21), // range: [0,21[
hair: (Math.floor(Math.random() * 28) + 1), // range: [1,28]
- sex: char.sex === "F" ? "F" : (char.sex === "M" ? "M" : "U"), // non-binary is undefined in evol
+ sex: char.gender === "F" ? "F" : (char.gender === "M" ? "M" : "U"), // non-binary is undefined in evol
});
} catch (err) {
// char.name has a UNIQUE constraint but an actual collision would never happen