Skip to content

Commit

Permalink
refine type
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Nov 24, 2023
1 parent 8e7a861 commit bb0e6f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/whale-api/src/module.database/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export abstract class Database {
id: string
): Promise<void>

abstract dump (): Promise<Array<Record<string, any>>>
abstract dump (): Promise<boolean>
}

export enum SortOrder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export abstract class LevelUpDatabase extends Database {
await this.root.close()
}

async dump (): Promise<any> {
async dump (): Promise<boolean> {
let id = 0
const maxSize = 500_000
const dir = path.join(process.cwd(), 'dump')
Expand Down

0 comments on commit bb0e6f9

Please sign in to comment.