ndb: switch profile queries to use transactions
this should ensure no crashing occurs when querying profiles
This commit is contained in:
1 parent
622a436589
commit
fc9b9f2940
51 files changed
+435
-252
No files matched your search
@@ -19,7 +19,7 @@ extension NotifyHandler {
|
||||
}
|
||||
|
||||
extension Notifications {
|
||||
static func profile_updated(pubkey: Pubkey, profile: Profile) -> Notifications<ProfileUpdatedNotify> {
|
||||
.init(.init(payload: ProfileUpdate(pubkey: pubkey, profile: profile)))
|
||||
static func profile_updated(_ update: ProfileUpdate) -> Notifications<ProfileUpdatedNotify> {
|
||||
.init(.init(payload: update))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user