Skip to content

Commit

Permalink
fix(cicd): linter errors (#2814)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin-Parvulescu committed Jan 19, 2024
1 parent 97e4eac commit de1fe0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platform/object/src/jsonrpc/methods/putObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { initObjectNodeByName } from '../../nodes'
import { Visibility } from '../../types'

import { getBaseKey, getObjectKey } from '../../utils'
import { InternalServerError } from '@proofzero/errors'

export const PutObjectInput = z.object({
namespace: z.string(),
Expand Down Expand Up @@ -50,6 +51,11 @@ export const putObjectMethod = async ({
JSON.stringify(value)
)
await node.class.set(index.version, index.visibility)
if (!metadata) {
throw new InternalServerError({
message: 'Metadata is null',
})
}
return {
size: metadata.size,
version: index.version,
Expand Down

0 comments on commit de1fe0b

Please sign in to comment.