Skip to content

Commit bc94dc2

Browse files
committed
Fix: Solve Group creation with the same guid.
1 parent b1b5fdc commit bc94dc2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

deployment/docker-build/pyaleph.dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ RUN pip install -e .
5858

5959
FROM base
6060

61+
RUN groupadd -g 1000 -o aleph
6162
RUN useradd -s /bin/bash -u 1000 -g 1000 -o aleph
6263

6364
COPY --from=builder --chown=aleph /opt/venv /opt/venv

src/aleph/schemas/pending_messages.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ class BasePendingMessage(AlephBaseMessage, Generic[MType, ContentType]):
112112

113113
@model_validator(mode="before")
114114
def load_content(cls, values):
115-
values_copy = values.copy()
116-
return base_pending_message_load_content(values_copy)
115+
return base_pending_message_load_content(values)
117116

118117
@field_validator("time", mode="before")
119118
def check_time(cls, v, info):

src/aleph/web/controllers/accounts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from aiohttp import web
66
from aleph_message.models import MessageType
7-
from pydantic import ValidationError, TypeAdapter
7+
from pydantic import TypeAdapter, ValidationError
88

99
import aleph.toolkit.json as aleph_json
1010
from aleph.db.accessors.balances import (

0 commit comments

Comments
 (0)