Skip to content

Commit 610b983

Browse files
committed
Use UserType instaed of PageType.
1 parent 55c8877 commit 610b983

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Field/Page/PageCreatedUserField.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
namespace ProcessWire\GraphQL\Field\Page;
44

55
use Youshido\GraphQL\Type\NonNullType;
6-
use ProcessWire\GraphQL\Type\Object\PageType as PageObjectType;
6+
use ProcessWire\GraphQL\Type\Object\UserType;
77
use ProcessWire\GraphQL\Field\Page\AbstractPageField;
88

99
class PageCreatedUserField extends AbstractPageField {
1010

1111
public function getType()
1212
{
13-
return new NonNullType(new PageObjectType());
13+
return new NonNullType(new UserType());
1414
}
1515

1616
public function getName()

src/Field/Page/PageModifiedUserField.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
namespace ProcessWire\GraphQL\Field\Page;
44

55
use Youshido\GraphQL\Type\NonNullType;
6-
use ProcessWire\GraphQL\Type\Object\PageType as PageObjectType;
6+
use ProcessWire\GraphQL\Type\Object\UserType;
77
use ProcessWire\NullPage;
88
use ProcessWire\GraphQL\Field\Page\AbstractPageField;
99

1010
class PageModifiedUserField extends AbstractPageField {
1111

1212
public function getType()
1313
{
14-
return new NonNullType(new PageObjectType());
14+
return new NonNullType(new UserType());
1515
}
1616

1717
public function getName()

0 commit comments

Comments
 (0)