Fixed page actions stored under page resource type

refs bde9b84221

- the commit above claimed to fix an issue where actions taken on pages
  were stored using the `post` resource type
- whilst it does that, this actually breaks part of the API because we
  use the `resource_type` to join on tables when doing an
  `include=resource`
- this commit reverts that functionality and instead stores the type in
  the `context` field so we can still differentiate between pages and
  posts
This commit is contained in:
Daniel Lockyer 2022-08-23 16:39:47 +02:00
parent d91d6c1311
commit 3a9016639c
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -39,9 +39,7 @@ Post = ghostBookshelf.Model.extend({
tableName: 'posts',
actionsCollectCRUD: true,
actionsResourceType: function () {
return this.get('type') || this.previous('type');
},
actionsExtraContext: ['type'],
/**
* @NOTE