Skip to content

Commit 0c037c8

Browse files
committed
feat: Add create or update action to metadata
1 parent 75b236c commit 0c037c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Runtime/Game/Requests/MetadataRequests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public enum LootLockerMetadataActions
4646
{
4747
create = 0,
4848
update = 1,
49-
delete = 2
49+
delete = 2,
50+
create_or_update = 3,
5051
};
5152
}
5253

@@ -296,7 +297,7 @@ public LootLockerInternalMetadataOperationWithStringEnums(LootLockerMetadataOper
296297
this.value = other.value;
297298
this.tags = other.tags;
298299
this.access = other.access;
299-
this.action = other.action.ToString().ToLower();
300+
this.action = other.action == LootLockerMetadataActions.create_or_update ? "upsert" : other.action.ToString().ToLower();
300301
}
301302

302303
public new string type { get; set; }

0 commit comments

Comments
 (0)