Support writing None on Shopify identifier

Closes #12760
This commit is contained in:
Cédric Krier committed 2023-11-20 12:04:37 +01:00
1 parent 88dc4b90dd
commit fe921d6406
1 file changed
+3 -1
+3 -1
View File
@@ -29,8 +29,10 @@ class IdentifierMixin:
@classmethod
def set_shopify_identifier(cls, records, name, value):
if value is not None:
value = int(value) - (1 << 63)
cls.write(records, {
'shopify_identifier_signed': int(value) - (1 << 63),
'shopify_identifier_signed': value,
})
@classmethod