mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
updated incorrect label for data function
This commit is contained in:
parent
ab80643e4b
commit
de79a8b0c8
@ -3,7 +3,7 @@ import { runQuery } from "~/node_common/data/utilities";
|
||||
//NOTE(martina): remember to include an ownerId for the file
|
||||
export default async ({ id }) => {
|
||||
return await runQuery({
|
||||
label: "CREATE_FILE",
|
||||
label: "INCREMENT_FILE_SAVECOUNT",
|
||||
queryFn: async (DB) => {
|
||||
const query = await DB.from("files").where("id", id).increment("saveCount", 1);
|
||||
|
||||
@ -16,7 +16,7 @@ export default async ({ id }) => {
|
||||
errorFn: async () => {
|
||||
return {
|
||||
error: true,
|
||||
decorator: "CREATE_FILE",
|
||||
decorator: "INCREMENT_FILE_SAVECOUNT",
|
||||
};
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user