We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf4989 commit 0c609c6Copy full SHA for 0c609c6
website/src/fixtures/posts.ts
@@ -13,10 +13,6 @@ export class User extends Entity {
13
return `https://i.pravatar.cc/64?img=${this.id + 4}`;
14
}
15
16
- pk() {
17
- return this.id;
18
- }
19
-
20
static key = 'User';
21
22
export const UserResource = resource({
@@ -32,10 +28,6 @@ export class Post extends Entity {
32
28
body = '';
33
29
votes = 0;
34
30
35
36
37
38
39
31
static key = 'Post';
40
41
static schema = {
@@ -117,7 +109,7 @@ export const postFixtures = [
117
109
{
118
110
endpoint: PostResource.get,
119
111
async response({ id }) {
120
- const author = UserResource.get({ id: entities[id].author });
112
+ const author = await UserResource.get({ id: entities[id].author });
121
113
return {
122
114
id,
123
115
votes: 0,
0 commit comments