database/postgres: fix inverted networkID check in ListWebPushSubscriptions
Same as 02844ca9df
("database/postgres: fix inverted networkID
check in StoreWebPushSubscription").
This commit is contained in:
parent
02844ca9df
commit
ce19f76673
@ -733,7 +733,7 @@ func (db *PostgresDB) ListWebPushSubscriptions(ctx context.Context, userID, netw
|
|||||||
|
|
||||||
nullNetworkID := sql.NullInt64{
|
nullNetworkID := sql.NullInt64{
|
||||||
Int64: networkID,
|
Int64: networkID,
|
||||||
Valid: networkID == 0,
|
Valid: networkID != 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
rows, err := db.db.QueryContext(ctx, `
|
rows, err := db.db.QueryContext(ctx, `
|
||||||
|
Loading…
Reference in New Issue
Block a user