From b1c7ef9bd9033c0da2ad2d27e2e34abbd4fdc160 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 6 Oct 2023 10:40:35 -0700 Subject: [PATCH] Fix profiles not updating Timestamped IDs were not being initialized properly when writing profile indices. This means that every profile was indexed with timestamp 0. derp. Fix this! Changelog-Fixed: Fix profiles not updating --- nostrdb/nostrdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c index 8daecec1..d805393d 100644 --- a/nostrdb/nostrdb.c +++ b/nostrdb/nostrdb.c @@ -391,7 +391,7 @@ static inline void ndb_tsid_init(struct ndb_tsid *key, unsigned char *id, uint64_t timestamp) { memcpy(key->id, id, 32); - key->timestamp = 0; + key->timestamp = timestamp; } // useful for range-searching for the latest key with a clustered created_at timen