From 4b6b20ed80e9981aa37be28bbe07bec194444693 Mon Sep 17 00:00:00 2001 From: Dominion5254 Date: Thu, 31 Oct 2024 13:13:28 -0600 Subject: [PATCH] Update to 0.12.12 (#45) --- Dockerfile | 4 ++-- manifest.yaml | 6 ++---- scripts/services/migrations.ts | 37 ++++++++++++++++++---------------- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4581d2..91a3428 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM lnbits/lnbits:v0.12.11 AS builder +FROM lnbits/lnbits:v0.12.12 AS builder # arm64 or amd64 ARG PLATFORM @@ -6,7 +6,7 @@ ARG PLATFORM RUN apt-get update && apt-get install -y bash curl sqlite3 tini --no-install-recommends RUN curl -sS https://webi.sh/yq | sh -FROM lnbits/lnbits:v0.12.11 AS final +FROM lnbits/lnbits:v0.12.12 AS final COPY --from=builder /usr/bin/tini /usr/bin/tini COPY --from=builder /usr/bin/sqlite3 /usr/bin/sqlite3 diff --git a/manifest.yaml b/manifest.yaml index 6070346..42f8c7b 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -1,10 +1,8 @@ id: lnbits title: "LNBits" -version: 0.12.11 +version: 0.12.12 release-notes: | - * Update LNbits to 0.12.11 - Full release notes available [here](https://github.com/lnbits/lnbits/releases/tag/v0.12.11). - * Optimizations and refactoring - * Update README and Instructions + * Update LNbits to 0.12.12 - Full release notes available [here](https://github.com/lnbits/lnbits/releases/tag/v0.12.12). license: MIT wrapper-repo: "https://github.com/Start9Labs/lnbits-startos" upstream-repo: "https://github.com/lnbits/lnbits" diff --git a/scripts/services/migrations.ts b/scripts/services/migrations.ts index 8f46073..f1b71e1 100644 --- a/scripts/services/migrations.ts +++ b/scripts/services/migrations.ts @@ -1,23 +1,26 @@ import { compat, types as T } from "../deps.ts"; -export const migration: T.ExpectedExports.migration = compat.migrations -.fromMapping({ - "0.9.7.2": { +export const migration: T.ExpectedExports.migration = + compat.migrations.fromMapping( + { + "0.9.7.2": { up: compat.migrations.updateConfig( - (config: any) => { - return { implementation: config?.wallet.type || 'LndRestWallet' } - }, - true, - { version: "0.9.7.2", type: "up" }, + (config: any) => { + return { implementation: config?.wallet.type || "LndRestWallet" }; + }, + true, + { version: "0.9.7.2", type: "up" } ), down: compat.migrations.updateConfig( - (config: any) => { - return { wallet: { type: config.implementation || 'LndRestWallet' } }; - }, - true, - { version: "0.9.7.2", type: "down" }, + (config: any) => { + return { + wallet: { type: config.implementation || "LndRestWallet" }, + }; + }, + true, + { version: "0.9.7.2", type: "down" } ), - }, -}, -"0.12.11", -); + }, + }, + "0.12.12" + );