Skip to content

Commit 610177d

Browse files
committed
Update consume function signature to include adapterResult parameter
1 parent 72aa46a commit 610177d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export type ColumnOptions = {
222222
/**
223223
* Invoked when row is fetched from the database
224224
*/
225-
consume?: (value: any, attribute: string, model: LucidRow) => any
225+
consume?: (value: any, attribute: string, model: LucidRow, adapterResult: Record<string, any>) => any
226226
}
227227

228228
/**

0 commit comments

Comments
 (0)