-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,11 @@ | |
"main": "deno task run main.ts", | ||
"start": "deno task run --watch server.ts", | ||
// development | ||
"test": "deno test --allow-env --allow-read --allow-net --allow-none", | ||
"test": "deno test --allow-env --allow-read --allow-net --allow-none --unstable", | ||
"cov": "deno task test --coverage=cov_profile; deno coverage cov_profile", | ||
"lint": "deno lint --ignore=cov_profile", | ||
"fmt": "deno fmt --ignore=cov_profile", | ||
"check": "deno check ./**/*.ts", | ||
"check": "deno check --unstable ./**/*.ts", | ||
"ci": "deno task check && deno task lint && deno task fmt --check && deno task test", | ||
"deps": "deno run --allow-read --allow-write --allow-net --allow-run https://deno.land/x/[email protected]/main.ts --test='deno task test' deno.jsonc ./**.*.ts", | ||
// git hooks | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// ============================================================================= | ||
// File : futago.ts | ||
// Author : yukimemi | ||
// Last Change : 2024/01/14 00:53:40. | ||
// Last Change : 2024/01/14 01:48:09. | ||
// ============================================================================= | ||
|
||
import * as datetime from "https://deno.land/[email protected]/datetime/mod.ts"; | ||
|
@@ -65,7 +65,7 @@ export class Futago { | |
public async getHistory(): Promise<InputContent[]> { | ||
const lastHistory = await this.#db.get([this.chatTitle]); | ||
if (lastHistory.value) { | ||
return lastHistory.value; | ||
return (lastHistory.value) as InputContent[]; | ||
} else { | ||
return []; | ||
} | ||
|