from bolinette import core
from bolinette.decorators import service


@service('role')
class RoleService(core.Service):
    async def get_by_name(self, name, *, safe=False):
        return await self.get_first_by('name', name, safe=safe)

from bolinette import core
from bolinette.decorators import service


@service('role')
class RoleService(core.Service):
    async def get_by_name(self, name, *, safe=False):
        return await self.get_first_by('name', name, safe=safe)
