Skip to content

Got syntax error when creating an function #2955

@hallee9000

Description

@hallee9000

Hi there, I just got an syntax error when creating a function in the dashboard. Here is the screenshot.

image

Here is my code:

  plv8.execute(
    `
      UPDATE design_files SET current_version = current_version + 1 WHERE id IN (
        SELECT design_file
        FROM file_versions
        WHERE id = $1
      )
    `,
    [version_id]
  );

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions