Skip to content

Commit

Permalink
type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
timolegros committed Jan 5, 2024
1 parent c8d6a0e commit 7de7fea
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('createReaction Integration Tests', () => {

const topic = await models.Topic.findOne({
where: {
chain_id: communityId,
community_id: communityId,
group_ids: [],
},
});
Expand Down
8 changes: 4 additions & 4 deletions packages/commonwealth/test/integration/api/linking.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import chaiHttp from 'chai-http';
import 'chai/register-should';
import jwt from 'jsonwebtoken';
import { JWT_SECRET } from 'server/config';
import { LinkSource, ThreadInstance } from 'server/models/thread';
import { LinkSource, ThreadAttributes } from 'server/models/thread';
import { Errors } from 'server/util/linkingValidationHelper';
import * as modelUtils from 'test/util/modelUtils';
import { resetDatabase } from '../../../server-test';
Expand Down Expand Up @@ -34,8 +34,8 @@ describe('Linking Tests', () => {
session: Session;
sign: (payload: ActionPayload) => string;
},
thread1: ThreadInstance,
thread2: ThreadInstance;
thread1: ThreadAttributes,
thread2: ThreadAttributes;

const link1 = {
source: LinkSource.Snapshot,
Expand All @@ -52,7 +52,7 @@ describe('Linking Tests', () => {

const topic = await models.Topic.findOne({
where: {
chain_id: chain,
community_id: chain,
group_ids: [],
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('Subscriptions Tests', () => {

const topic = await models.Topic.findOne({
where: {
chain_id: chain,
community_id: chain,
group_ids: [],
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Thread Patch Update', () => {

const topic = await models.Topic.findOne({
where: {
chain_id: chain,
community_id: chain,
group_ids: [],
},
});
Expand Down
2 changes: 1 addition & 1 deletion packages/commonwealth/test/integration/api/topics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('Topic Tests', () => {

const topicInstance = await models.Topic.findOne({
where: {
chain_id: chain,
community_id: chain,
group_ids: [],
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('User Dashboard API', () => {

const topic = await models.Topic.findOne({
where: {
chain_id: chain,
community_id: chain,
group_ids: [],
},
});
Expand All @@ -51,7 +51,7 @@ describe('User Dashboard API', () => {
const topic2 = await models.Topic.create({
name: 'Test Topic',
description: 'A topic made for testing',
chain_id: chain2,
community_id: chain2,
});
topicId2 = topic2.id;

Expand Down
2 changes: 1 addition & 1 deletion packages/commonwealth/test/util/resetDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export const resetDatabase = (debug = false): Promise<void> => {
await models.Topic.create({
name: 'Test Topic',
description: 'A topic made for testing',
chain_id: 'ethereum',
community_id: 'ethereum',
});

if (debug) log.info('Database reset!');
Expand Down

0 comments on commit 7de7fea

Please sign in to comment.