npm run fmt

This commit is contained in:
Abel Luck 2023-06-07 11:18:58 +00:00
parent 21fe35da05
commit 11c595619d
21 changed files with 155 additions and 137 deletions

View file

@ -2,7 +2,7 @@ import process from "node:process";
import { existsSync } from "node:fs";
import path from "node:path";
import { exec } from "node:child_process";
import { fileURLToPath } from 'node:url';
import { fileURLToPath } from "node:url";
import type { IAppConfig } from "@digiresilience/metamigo-config";
/**
@ -37,8 +37,8 @@ export const migrateWrapper = async (
};
const cmd = `npx --no-install graphile-migrate ${commands.join(" ")}`;
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const dbDir = path.resolve(__dirname, '../../');
const gmrcPath = path.resolve(__dirname, '../../.gmrc');
const dbDir = path.resolve(__dirname, "../../");
const gmrcPath = path.resolve(__dirname, "../../.gmrc");
if (!existsSync(gmrcPath)) {
throw new Error(`graphile migrate config not found at ${gmrcPath}`);
}

View file

@ -81,7 +81,7 @@ export const SettingsService = (
return s.value;
},
async save<T>(settingInfo: SettingInfo<T>, value: T): Promise<T> {
async save<T>(settingInfo: SettingInfo<T>, value: T): Promise<T> {
const s = await repo.upsert(settingInfo.name, value);
return s.value;
},

View file

@ -50,5 +50,4 @@ export class WhatsappBotRecordRepository extends RepositoryBase(
[this.schemaTable, verified, bot.id]
);
}
}