Skip to content

Commit

Permalink
Fix return type of insertOne
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinresol authored May 7, 2020
1 parent 8279c24 commit f1434ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tink/sql/Table.hx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TableSource<Fields, Filter:(Fields->Condition), Row:{}, Db>
ignore: if (options == null) false else options.ignore
}));

public function insertOne(row:Insert<Row>, ?options): Promise<Id<Db>>
public function insertOne(row:Insert<Row>, ?options): Promise<Id<Row>>
return insertMany([row], options);

public function update(f:Fields->Update<Row>, options:{ where: Filter, ?max:Int })
Expand Down Expand Up @@ -175,4 +175,4 @@ class TableSource<Fields, Filter:(Fields->Condition), Row:{}, Db>
abstract TableName<Row>(String) to String {
public inline function new(s)
this = s;
}
}

0 comments on commit f1434ff

Please sign in to comment.