fix: appends merge includes (#905)
This commit is contained in:
parent
418256820d
commit
e6f4db1a73
@ -188,8 +188,12 @@ describe('repository find', () => {
|
||||
appends: ['a1', 'a2'],
|
||||
});
|
||||
|
||||
const data = user.toJSON();
|
||||
|
||||
expect(user['a1']).toBeDefined();
|
||||
expect(user['a2']).toBeDefined();
|
||||
expect(data['a1'][0].createdAt).toBeDefined();
|
||||
expect(data['a2'][0].createdAt).toBeDefined();
|
||||
});
|
||||
|
||||
test('filter attribute', async () => {
|
||||
|
@ -37,7 +37,9 @@ export async function handleAppendsQuery(options: HandleAppendsQueryOptions) {
|
||||
const key = appendedResult.include.association;
|
||||
const val = appendedResult.rows[i].get(key);
|
||||
|
||||
rows[i].set(key, val);
|
||||
rows[i].set(key, val, {
|
||||
raw: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user