Run patch editing sequentially

This commit is contained in:
Sebastian Martinez
2024-01-24 13:50:56 +00:00
committed by Rūdolfs Ošiņš
parent e0154ef94d
commit 9ca438ad8e
+7 -9
View File
@@ -710,15 +710,13 @@
patchState = "submit";
if (session) {
try {
await Promise.all([
editPatch(session.id, patch.title),
editRevision(
session.id,
patch.id,
comment,
Array.from(embeds.values()),
),
]);
await editPatch(session.id, patch.title);
await editRevision(
session.id,
patch.id,
comment,
Array.from(embeds.values()),
);
} finally {
patchState = "read";
}