protected async upsert(
data: typeof this.schema.$inferInsert | typeof this.schema.$inferInsert[]
){
return await this.repository.insert(this.schema).values(data).onConflictDoUpdate({
target: this.schema.id,
set: data
});
}
protected async upsert(
data: typeof this.schema.$inferInsert | typeof this.schema.$inferInsert[]
){
return await this.repository.insert(this.schema).values(data).onConflictDoUpdate({
target: this.schema.id,
set: data
});
}