Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
addisonbeck committed Feb 2, 2024
1 parent 7ef2d68 commit 01a72cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jslib/node/src/cli/commands/update.command.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as fetch from "node-fetch";
import fetch from "node-fetch";

import { I18nService } from "@/jslib/common/src/abstractions/i18n.service";
import { PlatformUtilsService } from "@/jslib/common/src/abstractions/platformUtils.service";
Expand All @@ -22,11 +22,11 @@ export class UpdateCommand {
async run(): Promise<Response> {
const currentVersion = await this.platformUtilsService.getApplicationVersion();

const response = await fetch.default(
const response = await fetch(
"https://api.github.com/repos/bitwarden/" + this.repoName + "/releases/latest",
);
if (response.status === 200) {
const responseJson = await response.json();
const responseJson = await response.json() as any;
const res = new MessageResponse(null, null);

const tagName: string = responseJson.tag_name;
Expand Down

0 comments on commit 01a72cc

Please sign in to comment.