Skip to content

Commit

Permalink
fix: code snippets for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
MehulKChaudhari committed Jan 14, 2025
1 parent 02142d4 commit 10ab3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/release/models/finding-records.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { service } from '@ember/service';
import { findRecord } from '@ember-data/json-api/request';

// somewhere in the app
const result = await this.store.request(findRecord('blog-post', '1'));
const result = await store.request(findRecord('blog-post', '1'));
const blogPost = result.content.data;
```

Expand Down Expand Up @@ -104,7 +104,7 @@ Then, calling `queryData()` will retrieve that object from the server:
```javascript
import { queryData } from './builders';

const user = await this.requestManager.request(queryData());
const user = await requestManager.request(queryData());
let username = user.get('username');

console.log(`Currently logged in as ${username}`);
Expand Down

0 comments on commit 10ab3aa

Please sign in to comment.