mirror of
https://github.com/xtr-dev/rondevu-server.git
synced 2025-12-13 20:33:25 +00:00
Fix: Correct method name from getOffersByService to getOffersForService
The storage interface defines getOffersForService() but RPC handler was calling getOffersByService(), causing runtime error.
This commit is contained in:
@@ -228,7 +228,7 @@ const handlers: Record<string, RpcHandler> = {
|
||||
for (const service of compatibleServices) {
|
||||
if (!usernameSet.has(service.username)) {
|
||||
usernameSet.add(service.username);
|
||||
const offers = await storage.getOffersByService(service.id);
|
||||
const offers = await storage.getOffersForService(service.id);
|
||||
const availableOffer = offers.find((o) => !o.answererUsername);
|
||||
|
||||
if (availableOffer) {
|
||||
|
||||
Reference in New Issue
Block a user