From d97d51ae546b30327fcda2c1d8a16caf13017e9e Mon Sep 17 00:00:00 2001 From: aericio <16523741+Aericio@users.noreply.github.com> Date: Tue, 28 May 2024 18:20:53 -1000 Subject: [PATCH] fix: update default equipped avatar id --- dist/lib/schema.js | 4 +++- dist/lib/schema.js.map | 2 +- src/lib/schema.ts | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dist/lib/schema.js b/dist/lib/schema.js index 57a93f5..0641132 100644 --- a/dist/lib/schema.js +++ b/dist/lib/schema.js @@ -4,7 +4,9 @@ export const players = pgTable("players", { uuid: text("uuid").primaryKey().notNull(), username: text("username").notNull(), rank: text("rank").notNull(), - equipped_avatar_id: text("equipped_avatar_id").default("default").notNull(), + equipped_avatar_id: text("equipped_avatar_id") + .default("avatars/default.png") + .notNull(), equipped_avatar_name: text("equipped_avatar_name") .default("Default") .notNull(), diff --git a/dist/lib/schema.js.map b/dist/lib/schema.js.map index 4965700..29e3abf 100644 --- a/dist/lib/schema.js.map +++ b/dist/lib/schema.js.map @@ -1 +1 @@ -{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/lib/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,SAAS,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,SAAS,EAAE;IACxC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE;IACzC,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,EAAE;IACpC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE;IAC5B,kBAAkB,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE;IAC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EAAE;IAC1C,aAAa,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,OAAO,EAAE;IACnD,aAAa,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,OAAO,EAAE;IACnD,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC;IACnC,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC;IAC/B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,EAAE;IACtC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,EAAE;IAChC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,EAAE;IACxC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE;IAClC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE;IACjC,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;SAC7B,KAAK,EAAE;SACP,OAAO,CAAC,GAAG,CAAA,iBAAiB,CAAC;SAC7B,OAAO,EAAE;IACZ,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE;IAC5D,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE;CAC7D,CAAC,CAAC"} \ No newline at end of file diff --git a/src/lib/schema.ts b/src/lib/schema.ts index 5aca596..830a853 100644 --- a/src/lib/schema.ts +++ b/src/lib/schema.ts @@ -12,7 +12,9 @@ export const players = pgTable("players", { uuid: text("uuid").primaryKey().notNull(), username: text("username").notNull(), rank: text("rank").notNull(), - equipped_avatar_id: text("equipped_avatar_id").default("default").notNull(), + equipped_avatar_id: text("equipped_avatar_id") + .default("avatars/default.png") + .notNull(), equipped_avatar_name: text("equipped_avatar_name") .default("Default") .notNull(),