Fakultas Ilmu Komputer UI

Commit e9140eb0 authored by hashlash's avatar hashlash
Browse files

[REFACTOR] change mustahik photo representation to absolute uri

parent 44158968
Pipeline #51966 passed with stage
in 10 minutes and 36 seconds
......@@ -13,6 +13,9 @@ class MustahikType(DjangoObjectType):
age = graphene.Int(source='calculate_age')
def resolve_photo(self, info, **kwargs):
return self.photo and info.context.build_absolute_uri(self.photo.url)
class DataSourceInstitusiType(DjangoObjectType):
class Meta:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment