fix req id

This commit is contained in:
boufni95 2024-09-18 19:07:30 +00:00
parent 49b8dd693c
commit b30d727942

View file

@ -329,7 +329,7 @@ export default class {
const app = await this.storage.applicationStorage.GetApplication(event.appId) const app = await this.storage.applicationStorage.GetApplication(event.appId)
const appUser = await this.storage.applicationStorage.GetApplicationUser(app, res.appUserId) const appUser = await this.storage.applicationStorage.GetApplicationUser(app, res.appUserId)
if (res.status === 'authRequired') { if (res.status === 'authRequired') {
const message: Types.LiveDebitRequest & { requestId: string, status: 'OK' } = { ...res.liveDebitReq, requestId: "GetLiveUserOperations", status: 'OK' } const message: Types.LiveDebitRequest & { requestId: string, status: 'OK' } = { ...res.liveDebitReq, requestId: "GetLiveDebitRequests", status: 'OK' }
if (appUser.nostr_public_key) {// TODO - fix before support for http streams if (appUser.nostr_public_key) {// TODO - fix before support for http streams
this.nostrSend({ type: 'app', appId: event.appId }, { type: 'content', content: JSON.stringify(message), pub: appUser.nostr_public_key }) this.nostrSend({ type: 'app', appId: event.appId }, { type: 'content', content: JSON.stringify(message), pub: appUser.nostr_public_key })
} }