Fix return type in upsert (#1787)

This commit is contained in:
Michal Šrůtek 2022-04-03 12:02:13 +02:00 committed by GitHub
parent 0984e52dc7
commit 7884831809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
```