Closed that1guy closed 9 years ago
Is there a better way to find the postingId owner's username? Would be great if the entire post (or at least the owner's username) were also included in this emitted object.
https://github.com/HashtagSell/posting-api/blob/develop/lib/models/questions.js#L136
services.realtime.emit(
SOCKET_CHANNEL,
SOCKET_EVENT_QUESTION,
{
postingId : newQuestion.postingId,
postingOwner: post.username
question : newQuestion,
username : newQuestion.username,
timestamp : new Date()
});
Think this request should have been opened under realtime-svc repository. https://github.com/HashtagSell/realtime-svc/issues/1
Who is the owner of this postingId? I know "this1guy" sent the offer but I don't know which owner/seller to notify. Today I'm having to lookup the postingId to get the owner.