From aad9272d5016e5cbffa8d737e19f3ca566558061 Mon Sep 17 00:00:00 2001 From: User Date: Thu, 14 Aug 2025 09:42:47 -0400 Subject: [PATCH] fix homepage fetch --- app/routes/home.js | 4 ++-- config/environment.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/routes/home.js b/app/routes/home.js index 978de51..b11e995 100644 --- a/app/routes/home.js +++ b/app/routes/home.js @@ -7,8 +7,8 @@ export default class HomeRoute extends Route { @service store; async model() { - let decklists = await this.store.findAll('decklist', { - filter: { sort: '-created_at' }, + let decklists = await this.store.query('decklist', { + sort: '-created_at', page: { size: 10 }, }); diff --git a/config/environment.js b/config/environment.js index 184b772..d17da10 100644 --- a/config/environment.js +++ b/config/environment.js @@ -28,7 +28,7 @@ module.exports = function (environment) { }, // API_URL: 'http://localhost:3000/api/v3', - API_URL: 'https://api-preview.netrunnerdb.com/api/v3', + API_URL: 'https://api.netrunnerdb.com/api/v3', googleFonts: ['Merriweather Sans', 'Outfit', 'Inter', 'Nova Mono'], APP: { @@ -60,7 +60,7 @@ module.exports = function (environment) { } if (environment === 'production') { - ENV.API_URL = 'https://api-preview.netrunnerdb.com/api/v3'; + ENV.API_URL = 'https://api.netrunnerdb.com/api/v3'; ENV['ember-simple-auth-oidc'].clientId = 'nrdb-v2'; ENV['ember-simple-auth-oidc'].afterLogoutUri = 'https://v2.netrunnerdb.com/';