Skip to content

Commit

Permalink
fix: Sorry linter2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustrb authored and ggazzo committed Aug 16, 2024
1 parent f2c09d7 commit 40dc2f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { getWorkspaceAccessTokenWithScope } from './getWorkspaceAccessTokenWithScope';
import { retrieveRegistrationStatus } from './retrieveRegistrationStatus';

import type { IWorkspaceCredentials } from '@rocket.chat/core-typings';
import { WorkspaceCredentials } from '@rocket.chat/models';

import { getWorkspaceAccessTokenWithScope } from './getWorkspaceAccessTokenWithScope';
import { retrieveRegistrationStatus } from './retrieveRegistrationStatus';

const hasWorkspaceAccessTokenExpired = (credentials: IWorkspaceCredentials): boolean => new Date() >= credentials.expirationDate;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Cloud, Serialized } from '@rocket.chat/core-typings';
import { DuplicatedLicenseError } from '@rocket.chat/license';
import { Settings } from '@rocket.chat/models';
import { serverFetch as fetch } from '@rocket.chat/server-fetch';
import { v, compile } from 'suretype';

Expand All @@ -11,7 +12,6 @@ import { SystemLogger } from '../../../../../server/lib/logger/system';
import { buildWorkspaceRegistrationData } from '../buildRegistrationData';
import { CloudWorkspaceAccessTokenEmptyError, getWorkspaceAccessToken } from '../getWorkspaceAccessToken';
import { retrieveRegistrationStatus } from '../retrieveRegistrationStatus';
import { Settings } from '@rocket.chat/models';

const workspaceSyncPayloadSchema = v.object({
workspaceId: v.string().required(),
Expand Down

0 comments on commit 40dc2f9

Please sign in to comment.