Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
♻️ Allow cursors with implicit ID
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 15, 2020
1 parent c499a62 commit e54ddd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pipes/cursor.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { parseObjectLiteral } from '../helpers/parse-object-literal';
export class CursorPipe implements PipeTransform {
transform(value: string): Record<string, number | string> | undefined {
if (value == null) return undefined;
if (!value.includes(':')) value = `id:${value}`;
try {
const rules = parseObjectLiteral(value);
const items: Record<string, number | string> = {};
Expand Down

0 comments on commit e54ddd9

Please sign in to comment.