Skip to content

Commit

Permalink
r
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Fontanier committed Apr 4, 2024
1 parent 60ac344 commit bbb732b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion connectors/src/api/webhooks/webhook_intercom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const _webhookIntercomAPIHandler = async (
return res.status(200).end();
}

if (connector?.isPaused()) {
if (connector.isPaused()) {
logger.info(
{
connectorId: connector.id,
Expand Down
4 changes: 2 additions & 2 deletions connectors/src/resources/connector_resource.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ConnectorProvider, Result } from "@dust-tt/types";
import type { ConnectorProvider, ModelId, Result } from "@dust-tt/types";
import { Err, Ok } from "@dust-tt/types";
import type {
Attributes,
Expand Down Expand Up @@ -114,7 +114,7 @@ export class ConnectorResource extends BaseResource<ConnectorModel> {
return new this(this.model, blob.get());
}

static async fetchByIds(ids: number[]) {
static async fetchByIds(ids: ModelId[]) {
const blobs = await ConnectorResource.model.findAll({
where: {
id: ids,
Expand Down

0 comments on commit bbb732b

Please sign in to comment.