Skip to content

Commit 9b2aead

Browse files
perf: Change user weight api
1 parent 1702945 commit 9b2aead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/system/api/workspace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ async def create(session: SessionDep, creator: UserWsDTO):
122122
async def edit(session: SessionDep, editor: UserWsEditor):
123123
if not editor.oid or not editor.uid:
124124
raise RuntimeError("param [oid, uid] miss")
125-
db_model = session.exec(select(UserWsModel).where(UserWsModel.uid.in_(editor.uid), UserWsModel.oid == editor.oid)).first()
125+
db_model = session.exec(select(UserWsModel).where(UserWsModel.uid == editor.uid, UserWsModel.oid == editor.oid)).first()
126126
if not db_model:
127127
raise RuntimeError("uws not exist")
128128
if editor.weight == db_model.weight:

0 commit comments

Comments
 (0)