Fix back-fill on insert for Model.save

This commit is contained in:
Garrett Mills 2021-10-19 22:29:15 -05:00
parent 96e13d85fc
commit 3680ad1914

View File

@ -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))