npm run fmt
This commit is contained in:
parent
21fe35da05
commit
11c595619d
21 changed files with 155 additions and 137 deletions
|
|
@ -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}`);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
|
|
@ -50,5 +50,4 @@ export class WhatsappBotRecordRepository extends RepositoryBase(
|
|||
[this.schemaTable, verified, bot.id]
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue