deleteShaderComments method
Deletes a list of shaderId
s comments
On success the list of comments was deleted
In case of error a ResponseError
is set on DeleteShaderCommentsResponse
Implementation
@override
Future<DeleteShaderCommentsResponse> deleteShaderComments(String shaderId) {
return catchSqlError<DeleteShaderCommentsResponse>(
store.commentDao
.deleteByShaderId(shaderId)
.then((reponse) => DeleteShaderCommentsResponse()),
(sqle) => DeleteShaderCommentsResponse(
error: toResponseError(sqle,
context: contextComment, target: shaderId)),
options);
}