Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('proposalFoldersCreation', () => {

expect(exec).toHaveBeenCalledTimes(1);
expect(exec).toHaveBeenCalledWith(
'command shortcode 2025 shortCode group_prefix_shortCode test.proposer@email.com test.member@email.com',
'command shortcode 2026 shortCode group_prefix_shortCode test.proposer@email.com test.member@email.com',
expect.any(Function)
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,13 @@ const getInstrumentIds = async (instruments: Instrument[]) => {
const instrumentIds = [];

for (const name of instrumentNames) {
const instrumentNameLowerCase = encodeURIComponent(name.toLowerCase());
const url = `${sciCatBaseUrl}/Instruments?filter={"where":{"name":{"ilike":"${instrumentNameLowerCase}"}}}`;
const instrumentNameLowerCase = name.toLowerCase();

const filterString = JSON.stringify({
where: { name: { ilike: instrumentNameLowerCase } },
});

const url = `${sciCatBaseUrl}/Instruments?filter=${encodeURIComponent(filterString)}`;

try {
const res = await request<InstrumentDto[]>(url, {
Expand Down