mirror of https://github.com/AMT-Cheif/drift.git
Fix return type in upsert (#1787)
This commit is contained in:
parent
0984e52dc7
commit
7884831809
|
@ -238,7 +238,7 @@ class Users extends Table {
|
|||
Set<Column> get primaryKey => {email};
|
||||
}
|
||||
|
||||
Future<void> createOrUpdateUser(User user) {
|
||||
Future<int> createOrUpdateUser(User user) {
|
||||
return into(users).insertOnConflictUpdate(user);
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue