Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisofficial committed Jul 10, 2024
1 parent c593dbe commit e37ef9b
Show file tree
Hide file tree
Showing 3 changed files with 235 additions and 187 deletions.
2 changes: 1 addition & 1 deletion lib/repository/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class Repository<T extends Entity = Record<string, any>> {
*/
async save(id: string, entity: T): Promise<T>

async save(entityOrId: T | string, maybeEntity?: T): Promise<Entity> {
async save(entityOrId: T | string, maybeEntity?: T): Promise<T> {
let entity: T | undefined
let entityId: string | undefined

Expand Down
2 changes: 1 addition & 1 deletion lib/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export class Schema<T extends Entity = Record<string, any>> {
*/
async generateId(): Promise<string> {
const ulidStrategy = () => ulid()
return (this.#options?.idStrategy ?? ulidStrategy)();
return await (this.#options?.idStrategy ?? ulidStrategy)();
}

/**
Expand Down
Loading

0 comments on commit e37ef9b

Please sign in to comment.