Fix back-fill on insert for Model.save
This commit is contained in:
parent
96e13d85fc
commit
3680ad1914
@ -627,7 +627,7 @@ export abstract class Model<T extends Model<T>> extends AppClass implements Bus
|
||||
|
||||
const data = result.rows.first()
|
||||
if ( data ) {
|
||||
await this.assumeFromSource(result)
|
||||
await this.assumeFromSource(data)
|
||||
}
|
||||
|
||||
await this.dispatch(new ModelCreatedEvent<T>(this as any))
|
||||
|
Loading…
Reference in New Issue
Block a user