renamem orders
This commit is contained in:
@@ -49,8 +49,9 @@ def get_enrollments():
|
||||
if tenant.id != '*':
|
||||
filter_ = [
|
||||
{
|
||||
'attr': 'tenant_id',
|
||||
'attr': 'org_id',
|
||||
'op': '=',
|
||||
# Post-migration (enrollemnt): rename `tenant` to `org`
|
||||
'value': tenant.id,
|
||||
},
|
||||
] + filter_
|
||||
|
||||
@@ -23,7 +23,7 @@ class DeduplicationWindow(BaseModel):
|
||||
)
|
||||
def deduplication_window(id: str, payload: DeduplicationWindow):
|
||||
with enrollment_layer.transact_writer() as transact:
|
||||
transact.delete(key=KeyPair(id, 'lock'))
|
||||
transact.delete(key=KeyPair('lock', payload.lock_hash))
|
||||
transact.delete(key=KeyPair(id, 'LOCK'))
|
||||
transact.delete(key=KeyPair('LOCK', payload.lock_hash))
|
||||
|
||||
return payload
|
||||
|
||||
Reference in New Issue
Block a user