Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
update algorithm schema
Browse files Browse the repository at this point in the history
update server auth
  • Loading branch information
CelestialCrafter committed Dec 6, 2023
1 parent 8dca925 commit c65475c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/blockchain/check.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import addWorths from './worth';
export default async redis => {
console.log('Running algorithm check');
try {
const token = jwt.sign({ event: 'auth' }, JWT_SECRET, { algorithm: 'HS256' });
const token = jwt.sign({ server: true }, JWT_SECRET, { algorithm: 'HS256' });
const response = await (
await fetch(`${ALGORITHM_SERVER_URI}/internal_checker`, {
headers: {
Expand Down
8 changes: 7 additions & 1 deletion src/lib/models.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ const schemas = {
type: Schema.Types.ObjectId,
ref: 'User',
required: false
}
},
params: [
{
name: String,
value: mongoose.Types.Decimal128
}
]
}),
Bot: Schema(
{
Expand Down

0 comments on commit c65475c

Please sign in to comment.