fix: #495, avoids appending version to id queries
This commit is contained in:
@@ -9,9 +9,13 @@ export const appendVersionToQueryKey = (query: Where): Where => {
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
...res,
|
||||
[`version.${key}`]: val,
|
||||
};
|
||||
if (key !== 'id') {
|
||||
return {
|
||||
...res,
|
||||
[`version.${key}`]: val,
|
||||
};
|
||||
}
|
||||
|
||||
return res;
|
||||
}, {});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user