mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
chore: formatter pass
This commit is contained in:
parent
a626481802
commit
9314d57645
2 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ export class ApiLogins extends BaseRepository {
|
||||||
|
|
||||||
const login = await this.apiLogins.createQueryBuilder().where("id = :id", { id: loginId }).getOne();
|
const login = await this.apiLogins.createQueryBuilder().where("id = :id", { id: loginId }).getOne();
|
||||||
if (!login || moment.utc(login.expires_at).isSameOrAfter(updatedTime)) return;
|
if (!login || moment.utc(login.expires_at).isSameOrAfter(updatedTime)) return;
|
||||||
|
|
||||||
await this.apiLogins.update(
|
await this.apiLogins.update(
|
||||||
{ id: loginId },
|
{ id: loginId },
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,9 +3,9 @@ import { TemplateFunction } from "./types";
|
||||||
|
|
||||||
export function generateTemplateMarkdown(definitions: TemplateFunction[]): string {
|
export function generateTemplateMarkdown(definitions: TemplateFunction[]): string {
|
||||||
return definitions
|
return definitions
|
||||||
.map(def => {
|
.map((def) => {
|
||||||
const usage = def.signature ?? `(${def.arguments.join(", ")})`;
|
const usage = def.signature ?? `(${def.arguments.join(", ")})`;
|
||||||
const examples = def.examples?.map(ex => `> \`{${ex}}\``).join("\n") ?? null;
|
const examples = def.examples?.map((ex) => `> \`{${ex}}\``).join("\n") ?? null;
|
||||||
return trimPluginDescription(`
|
return trimPluginDescription(`
|
||||||
## ${def.name}
|
## ${def.name}
|
||||||
**${def.description}**\n
|
**${def.description}**\n
|
||||||
|
|
Loading…
Add table
Reference in a new issue