fix: use camelCase for createdAfter in the Notifications URL
Instead of the former created_after. Signed-off-by: Marek Libra <marek.libra@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@ describe('NotificationsClient', () => {
|
||||
server.use(
|
||||
rest.get(`${mockBaseUrl}/`, (req, res, ctx) => {
|
||||
expect(req.url.search).toBe(
|
||||
'?limit=10&offset=0&search=find+me&read=true&created_after=1970-01-01T00%3A00%3A00.005Z',
|
||||
'?limit=10&offset=0&search=find+me&read=true&createdAfter=1970-01-01T00%3A00%3A00.005Z',
|
||||
);
|
||||
return res(ctx.json(expectedResp));
|
||||
}),
|
||||
|
||||
@@ -65,7 +65,7 @@ export class NotificationsClient implements NotificationsApi {
|
||||
queryString.append('saved', options.saved ? 'true' : 'false');
|
||||
}
|
||||
if (options?.createdAfter !== undefined) {
|
||||
queryString.append('created_after', options.createdAfter.toISOString());
|
||||
queryString.append('createdAfter', options.createdAfter.toISOString());
|
||||
}
|
||||
if (options?.minimumSeverity !== undefined) {
|
||||
queryString.append('minimal_severity', options.minimumSeverity);
|
||||
|
||||
Reference in New Issue
Block a user