From f08c47306d93a469d59b8ba65f2a006af89cfa10 Mon Sep 17 00:00:00 2001 From: Tau Date: Mon, 29 Apr 2019 19:58:44 -0400 Subject: [PATCH] wip fix settings pack width --- schema/init/idz.sql | 2 +- src/idz/db/settings.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schema/init/idz.sql b/schema/init/idz.sql index da313d0..7c22cdd 100644 --- a/schema/init/idz.sql +++ b/schema/init/idz.sql @@ -99,7 +99,7 @@ create table "idz"."settings" ( references "idz"."profile"("id") on delete cascade, "music" smallint not null, - "pack" integer not null, + "pack" bigint not null, "paper_cup" smallint not null, -- Not a boolean, oddly enough "gauges" integer not null ); diff --git a/src/idz/db/settings.ts b/src/idz/db/settings.ts index edc9b60..9460a60 100644 --- a/src/idz/db/settings.ts +++ b/src/idz/db/settings.ts @@ -23,7 +23,7 @@ export class SqlSettingsRepository implements FacetRepository { return { music: row.music, - pack: row.pack, + pack: parseInt(row.pack, 10), paperCup: row.paper_cup, gauges: row.gauges, };