Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/decorators/authorization-decorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ function checkFogToken(f) {
module.exports = {
checkAuthToken: checkAuthToken,
checkFogToken: checkFogToken
}
};
4 changes: 2 additions & 2 deletions src/schemas/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ const straceData = {
"id": "/straceData",
"type": "object",
"properties": {
"microserviceId": {"type": "string"},
"microserviceUuid": {"type": "string"},
"buffer": {"type": "string"}
},
"required": ["microserviceId", "buffer"],
"required": ["microserviceUuid", "buffer"],
"additionalProperties": false
};

Expand Down
2 changes: 1 addition & 1 deletion src/sequelize/managers/strace-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class StraceManager extends BaseManager {
return Strace
}

async pushBufferByMicroserviceId(uuid, pushingData, transaction) {
async pushBufferByMicroserviceUuid(uuid, pushingData, transaction) {
const strace = await this.findOne({
microserviceUuid: uuid
}, transaction);
Expand Down
4 changes: 2 additions & 2 deletions src/services/agent-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@ const updateAgentStrace = async function (straceData, fog, transaction) {
await Validator.validate(straceData, Validator.schemas.updateAgentStrace);

for (const strace of straceData.straceData) {
const microserviceId = strace.microserviceId;
const microserviceUuid = strace.microserviceUuid;
const buffer = strace.buffer;
await StraceManager.pushBufferByMicroserviceId(microserviceId, buffer, transaction)
await StraceManager.pushBufferByMicroserviceUuid(microserviceUuid, buffer, transaction)
}

};
Expand Down
Loading