Skip to content

Commit

Permalink
added mode param to createImport
Browse files Browse the repository at this point in the history
  • Loading branch information
gumuz committed Mar 17, 2022
1 parent 894fdc9 commit edb7685
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2860,12 +2860,13 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
*
* @private
* @param {string} path path of uploaded data
*
* @param {string} mode import mode insert|upsert
* @return {APIResponse & CreateImportResponse} An ImportTask
*/
async _createImport(path: string) {
async _createImport(path: string, mode: string) {
return await this.post<APIResponse & CreateImportResponse>(this.baseURL + `/imports`, {
path,
mode,
});
}

Expand Down

0 comments on commit edb7685

Please sign in to comment.