fix test case
This commit is contained in:
parent
763df58ef8
commit
b42c05f226
3 changed files with 5 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ const {
|
|||
describe('*** Test schema for SERVER database ***', () => {
|
||||
it('=> The SERVER SCHEMA should strictly match', () => {
|
||||
expect(serverSchema).toEqual({
|
||||
version: 1,
|
||||
version: 2,
|
||||
unsafeSql: undefined,
|
||||
tables: {
|
||||
[CATEGORY]: {
|
||||
|
|
@ -92,6 +92,7 @@ describe('*** Test schema for SERVER database ***', () => {
|
|||
header: {name: 'header', type: 'string'},
|
||||
member_count: {name: 'member_count', type: 'number'},
|
||||
pinned_post_count: {name: 'pinned_post_count', type: 'number'},
|
||||
files_count: {name: 'files_count', type: 'number'},
|
||||
purpose: {name: 'purpose', type: 'string'},
|
||||
},
|
||||
columnArray: [
|
||||
|
|
@ -99,6 +100,7 @@ describe('*** Test schema for SERVER database ***', () => {
|
|||
{name: 'header', type: 'string'},
|
||||
{name: 'member_count', type: 'number'},
|
||||
{name: 'pinned_post_count', type: 'number'},
|
||||
{name: 'files_count', type: 'number'},
|
||||
{name: 'purpose', type: 'string'},
|
||||
],
|
||||
},
|
||||
|
|
|
|||
|
|
@ -172,6 +172,7 @@ export const gqlToClientChannelStats = (s: Partial<GQLChannel>): ChannelStats =>
|
|||
guest_count: s.stats?.guestCount || 0,
|
||||
member_count: s.stats?.memberCount || 0,
|
||||
pinnedpost_count: s.stats?.pinnePostCount || 0,
|
||||
files_count: s.stats?.filesCount || 0,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
1
types/api/graphql.d.ts
vendored
1
types/api/graphql.d.ts
vendored
|
|
@ -174,6 +174,7 @@ type GQLStats = {
|
|||
guestCount: number;
|
||||
memberCount: number;
|
||||
pinnePostCount: number;
|
||||
filesCount: number;
|
||||
}
|
||||
|
||||
type GQLRole = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue