Files
damus/damus/Notify/ProfileUpdatedNotify.swift
William Casarin fc9b9f2940 ndb: switch profile queries to use transactions
this should ensure no crashing occurs when querying profiles
2023-09-21 09:10:06 -04:00

26 lines
504 B
Swift

//
// ProfileNotify.swift
// damus
//
// Created by William Casarin on 2023-07-30.
//
import Foundation
struct ProfileUpdatedNotify: Notify {
typealias Payload = ProfileUpdate
var payload: Payload
}
extension NotifyHandler {
static var profile_updated: NotifyHandler<ProfileUpdatedNotify> {
.init()
}
}
extension Notifications {
static func profile_updated(_ update: ProfileUpdate) -> Notifications<ProfileUpdatedNotify> {
.init(.init(payload: update))
}
}