Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

No data returns a 500 #134

@eddiejaoude

Description

@eddiejaoude

I think the 500 is because there is no data in the DB and we do not handle the 404 exception. We will need something like this...

findAll(): Observable<findResult<DiscordProfile>> {
      return this.astraService.find<DiscordProfile>()
        .pipe(
          catchError((e) => from([]))
        );
  }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions