save block

This commit is contained in:
Benjamin Wilson
2024-09-16 19:48:46 -04:00
parent 76d92d84b4
commit 8fdf1e839e
2 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export class RpcBlockService {
}
public saveBlock(blockHeight: number, data: string) {
return this.rpcBlockRepository.update(blockHeight, { data });
return this.rpcBlockRepository.save( {blockHeight, data });
}
public async deleteOldBlocks() {