You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -179,7 +182,7 @@ export class EventRepository implements IEventRepository {
179
182
),
180
183
})(event)
181
184
182
-
returnthis.dbClient('events')
185
+
returnthis.masterDbClient('events')
183
186
.insert(row)
184
187
.onConflict()
185
188
.ignore()
@@ -211,12 +214,12 @@ export class EventRepository implements IEventRepository {
211
214
),
212
215
})(event)
213
216
214
-
constquery=this.dbClient('events')
217
+
constquery=this.masterDbClient('events')
215
218
.insert(row)
216
219
// NIP-16: Replaceable Events
217
220
// NIP-33: Parameterized Replaceable Events
218
221
.onConflict(
219
-
this.dbClient.raw(
222
+
this.masterDbClient.raw(
220
223
'(event_pubkey, event_kind, event_deduplication) WHERE (event_kind = 0 OR event_kind = 3 OR event_kind = 41 OR (event_kind >= 10000 AND event_kind < 20000)) OR (event_kind >= 30000 AND event_kind < 40000)'
221
224
)
222
225
)
@@ -233,7 +236,7 @@ export class EventRepository implements IEventRepository {
0 commit comments