mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-27 09:28:12 +03:00
Enforce that charts-usc|bms can never have things removed.
This commit is contained in:
@@ -99,10 +99,15 @@ async function GenericUpsert<T>(
|
||||
}
|
||||
|
||||
const syncInstructions: SyncInstructions[] = [
|
||||
{
|
||||
pattern: /^charts-(usc|bms)$/u,
|
||||
handler: (charts: ChartDocument[], collection: ICollection<ChartDocument>, logger) =>
|
||||
GenericUpsert(charts, collection, "chartID", logger, false),
|
||||
},
|
||||
{
|
||||
pattern: /^charts-/u,
|
||||
handler: (charts: ChartDocument[], collection: ICollection<ChartDocument>, logger) =>
|
||||
GenericUpsert(charts, collection, "chartID", logger),
|
||||
GenericUpsert(charts, collection, "chartID", logger, true),
|
||||
},
|
||||
{
|
||||
pattern: /^songs-/u,
|
||||
|
||||
Reference in New Issue
Block a user