fix: 修复前端类型标注与GraphQL访问数据不同的问题
- 将类型标注中的id字段改为string
This commit is contained in:
@ -16,7 +16,7 @@ describe('companyProfileMapper', () => {
|
||||
};
|
||||
|
||||
expect(toCompanyProfileView(rawData)).toEqual({
|
||||
id: 1,
|
||||
id: '1',
|
||||
content: 'This is raw data of company profile',
|
||||
});
|
||||
});
|
||||
@ -27,7 +27,7 @@ describe('companyProfileMapper', () => {
|
||||
};
|
||||
|
||||
expect(toCompanyProfileView(rawData)).toEqual({
|
||||
id: 1,
|
||||
id: '1',
|
||||
content: '',
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user