Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
  • Loading branch information
ogzhanolguncu committed Jan 11, 2024
1 parent 6326ae7 commit b8d64b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/commands/client/fetch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ type FetchReturnResponse<TMetadata> = Vector<TMetadata> | null;
* // Use fetchCommand to execute the fetch operation
* ```
*/
export class FetchCommand<TMetadata> extends Command<
FetchReturnResponse<TMetadata>[]
> {
export class FetchCommand<TMetadata> extends Command<FetchReturnResponse<TMetadata>[]> {
constructor(payload: Payload) {
super({ ...payload }, "fetch");
}
Expand Down
4 changes: 1 addition & 3 deletions src/commands/client/range/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ type RangeReturnResponse<TMetadata> = {
* // Use rangeCommand to execute the range query and retrieve data
* ```
*/
export class RangeCommand<TResult> extends Command<
RangeReturnResponse<TResult>
> {
export class RangeCommand<TResult> extends Command<RangeReturnResponse<TResult>> {
constructor(payload: Payload) {
super(payload, "range");
}
Expand Down
4 changes: 1 addition & 3 deletions src/commands/client/upsert/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ describe("UPSERT", () => {
afterAll(async () => await resetIndexes());

test("should add record successfully", async () => {
const res = await new UpsertCommand({ id: 1, vector: [0.1, 0.2] }).exec(
client
);
const res = await new UpsertCommand({ id: 1, vector: [0.1, 0.2] }).exec(client);
expect(res).toEqual("Success");
});

Expand Down

0 comments on commit b8d64b7

Please sign in to comment.