database/postgres: fix inverted networkID check in StoreWebPushSubscription

Presented without comment.
This commit is contained in:
Simon Ser 2022-07-25 19:32:09 +02:00
parent 8849669d61
commit 02844ca9df

View File

@ -763,7 +763,7 @@ func (db *PostgresDB) StoreWebPushSubscription(ctx context.Context, userID, netw
nullNetworkID := sql.NullInt64{ nullNetworkID := sql.NullInt64{
Int64: networkID, Int64: networkID,
Valid: networkID == 0, Valid: networkID != 0,
} }
var err error var err error