@towns-protocol/sdk
Version:
For more details, visit the following resources:
15 lines • 523 B
JavaScript
/**
* Zero out the tips sent and received since we're adding counts and we want them to match
*/
export function snapshotMigration0003(snapshot) {
switch (snapshot.content?.case) {
case 'userContent': {
snapshot.content.value.tipsSent = {};
snapshot.content.value.tipsReceived = {};
snapshot.content.value.tipsSentCount = {};
snapshot.content.value.tipsReceivedCount = {};
}
}
return snapshot;
}
//# sourceMappingURL=snapshotMigration0003.js.map