From 8bcb7aa93cac90ef1aa61043f994bcc462445f0d Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Tue, 7 Jul 2020 13:50:16 -0500 Subject: [PATCH] DEV: Import getURL to fix deprecation warnings (#16) --- assets/javascripts/discourse/models/admin-subscription.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/models/admin-subscription.js.es6 b/assets/javascripts/discourse/models/admin-subscription.js.es6 index d260eea..3e586b2 100644 --- a/assets/javascripts/discourse/models/admin-subscription.js.es6 +++ b/assets/javascripts/discourse/models/admin-subscription.js.es6 @@ -1,6 +1,7 @@ import discourseComputed from "discourse-common/utils/decorators"; import { ajax } from "discourse/lib/ajax"; import EmberObject from "@ember/object"; +import getURL from "discourse-common/lib/get-url"; const AdminSubscription = EmberObject.extend({ @discourseComputed("status") @@ -15,7 +16,7 @@ const AdminSubscription = EmberObject.extend({ @discourseComputed("metadata") subscriptionUserPath(metadata) { - return Discourse.getURL( + return getURL( `/admin/users/${metadata.user_id}/${metadata.username}` ); },